Posse Comitatus
Border Patrol was founded in part because of this.
Example:
https://www.thoughtco.com/posse-comitatus-act-military-on-border-3321286
Another echo of the War Between the States and Reconstruction