This has been legal since long before Trump, if you don't like it there's laws in motion to ban it you can support, but entering across a border you've been allowed to be searched without a warrant for decades at least. And if you're being searched and then you destroy what they're trying to search... Here you are.