The trick here is to make it impossible to do so.
Don’t put your shit in the cloud and use proper E2E secure messaging.
For me the entire idea of the cloud is dead due to exposure like this.
That's one of the tricks. The other trick is to vote in universal right for encrypted communication once and for all.
People on HN but also criminals will know how circumvent this. But the average person will be completely lost in this surveillance apparatus. It's going to affect the wrong people.