Wiping under duress is unlawful and could lead to prosecution in some juridictions.

On the other hand I don't know of any juridiction that force you to carry all the personal data in a single device when crossing borders. It would moat likely not even be possible.