If I put a fence around property that isn't mine, climbing over that fence isn't illegal. Resisting unjust restraint isn't illegal.
Hilariously, the same cannot be said for digital protection measures.