It would be possible to proactively pass a law that is incompatible with future attempts, right?
E.g. in this case something like a "right to chat secrecy" law.
We already have this. It's even a law you can't change easily. We call it constitution, what ever that is. It obviously doesn't matter here.
Yes, but whatever law you pass that is incompatible with future attempts can just have its repeal included as part of future attempts.