This is one of the biggest reasons to never go to usa for a vacation. USA is the most corrupt country in the world. It doesn't matter if they have fourth ammendment and any other laws that protect people when those laws are not followed.
Read the law and ask a lawyer and they will say you have nothing to worry about, the laws protect you. Then you read the experiences by travelers and incredibly many people are saying their rights have been violated.
Yes other countries do this too but usa is the worst of them all. And it's also usa who started with this corrupt scheme which inspired some other countries to do the same.
That is really what separates good lawyers from bad ones. The bad ones just read the law and tell you what the law says. The good ones will look at how the laws are actually followed. It's about theory (laws) vs what happens in reality (corruption).