If it makes you feel better, I'm now a US citizen and border patrol still does this stuff to us. I think it's part of their training, and it's definitely unwelcoming. That said, as a visa and greencard holder, I just made sure to always be prepared on crossing and never had a single issue.