tl;dr: only applies to NY Eastern District, and likely only US citizen can enjoy
You don’t have rights when crossing a border. If you’re not willing to have customs rooting through your data, delete it and restore from backup after you arrive.
The problem is that this also applies within a radius around a “port of entry”. So everybody that lives within about 100 miles of the coast, an airport, or a rail line that crosses a border — which is probably about 80+% of any country.
If we’re talking about US citizens entering the US, AFAIK they have no right to deny you entry.