States can’t overrule the constitution, which sets the explicit qualifications for the House of Representatives.
No Person shall be a Representative who shall not have attained to the Age of twenty five Years, and been seven Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State in which he shall be chosen.
A state can’t make that more restrictive, by increasing the minimum age, increasing the length of citizenship, or restricting residency within the state.
Nearly all candidates do acquire residency in the district they’re seeking for legitimacy, but it’s not required.