It appears, alikimr, as if I still haven't made my point clear enough.
alikimr wrote: John, a fanatic religious fundamentalist, claimed that he talked to God directly and was told that he was free to kill all prostitutes, which he went about doing freely until the law said....John, this is unjust because you must not go around killing people even if God told you.
In your scenario, does it make any interesting difference to you that being killed greatly infringed
on the prostitutes' freedom, and that John's arrest greatly
increased it? When you weigh John's loss of freedom against the prostitutes' gain of freedom when John was arrested, could this add up to a net gain of freedom for everyone involved? If your answer to those questions is "yes", maybe you haven't described a tradeoff between justice and freedom at all. Maybe the law is just
because it increased the total amount of freedom in society, not in spite of it having reduced it, which you seem to imply is what happened.