If they don't keep track of which direction people come from, and that person doesn't have any paperwork, how do they know which side to tell them to go back to? What's stopping someone crossing from Canada saying "Oh, sorry, left my ID at home, I'll go back and get it, from my home, in the US, where I just came from" and then just continue into the US?
“Muslim looking guy” (what does that even mean?)
You don't have to agree with it to know what a "muslim looking guy" means. It means "someone whose looks Arabic or Persian, possibly with a beard". That's what it means. It's wrong, and it's prejudical, and in a strictly literal sense the words are inherently nonsensical, but that's what it means. I think you knew that already and for some passive-aggressive reason you're pretending you didn't.