One advice I heard for travelling internationally is to keep your devices clean and have your files encrypted on a server.
Of course a server can be seized too but for crossing a border it's lower risk than having (encrypted) files on a device you are carrying.