"Borders are under control of the legal system and policing them is a right that's granted to the Federal government by the constitution"
Barely. Apparently the US constitution gets suspended at the border (and a 100 mile radius around the border)
https://www.aclu.org/other/constitution-100-mile-border-zone