That probably only works if you're entering a country that you're a citizen of, and not otherwise.
BTW, legally speaking by US law, it's a lot easier to force someone to give up their thumbprint than a password. So whatever you do, don't go through an American border with touch-id unlocking your phone.
Yeah the best approach, the one I use when crossing, is to encrypt everything, then send part of the password to someone else who won't give it to me until later. They can steal your hardware, I guess.
And then you'll just be denied entry for "not cooperating". There is no technical solution to this political problem. (It also happens to be an ineffective measure, as false identities are easily crafted on the internet.)