Onlyfun
Indeed that seems like the entirely logical thing to do. But these days that does not hold: In the UK there is a law that at the border, you MUST give access to your electronic devices, AND you don't have right to a lawyer, AND you don't have the right te remain silent. It is called the "counter-terrorism and border security act of 2019".
Example of what can happen: from 2:42.