In Oregon, one must establish a domicile and a predominant physical presence in Oregon for a period of 12 months or more prior to the beginning of the term for which residency is sought. A residence information affidavit must be filed. All states have these or similar requirements.
The 'rush across the border' argument, within the states, or to Canada, etc., doesn't hold water.