My understanding is that SCOTUS has held since the 50s that 'the people' means people inside the country, and a border does not count as being granted entry into the country yet, therefore the Constitution doesn't really apply, especially for non-citizens.
https://supreme.justia.com/cases/federal/us/345/206/
> (c) Although a lawfully resident alien may not captiously be deprived of his constitutional rights to due process, the alien in this case is an entrant alien or "assimilated to that status" for constitutional purposes.
And another gem from the same case that is recently all the more relevant:
> Nothing in the Constitution requires admission or sufferance of aliens hostile to our scheme of government.
Meaning they can seize all your stuff and deport you if you criticize the government. Also, immigration lawyers are part of the Executive branch.