@evacide I know that my statement sounds harsh. I do not like to cause people discomfort. But I see no alternative.
If you your own data security is important to you, especially if the current administration might look negatively upon your environments activity, this is the only way.
That is why I avoid travel to such countries as much as possible.
A few years back, I had to travel to a country, where the government was "not a nice one" and also not known for fair play. Luckily it was only for a few days.
So I ditched my smartphone and switched to a $25 dumb phone for the trip. I bought a used $100 tablet as disposable internet device and sold it for $50 before I left. So the costs were bearable. Of course I felt severely limited during that time.
I know that people on tight budget may find those costs prohibitive already.
But be aware: you may loose your device anyway if the border agent wishes so, even if you are innocent of everything. That is nothing you can control. They do not care that you cannot afford a new device.
Another important thought (at least for me): I do not bear the risk alone. As I may work or be friends with people on the administrations shit list, any leak on my side may cause them harm. That thought scares me most.