If people break the law, we restrict their freedom. Many seem to oppose that idea nowadays, or at least claim to. There’s a certain irony in that. But yes, if an individual breaks the social contract in a manner deemed “against the law”, then certain rights are removed from them.