To do X is irrelevant, what matters is if it meets legal definition of reasonable suspicion, which I assure you is both extremely low at border crossings and that law enforcement is very aware of how to establish it; hence why the warrant was granted.
Way to address issues like this is not online or at a border crossing — but by changing laws themselves. I assure that vast majority of people support laws like these, otherwise they would not have been in place so long.
Again, I am not saying I agree with situation, but attempting to accurately describe the reality of it.