participating in civilian law enforcement except when expressly authorized by law.
https://www.brennancenter.org/our-work/research-reports/posse-comitatus-act-explained
Keeping people of other countries from illegally coming into one's own country is not necessarily an act of "civilian law enforcement" is it?