Everything good happens against a backdrop of liberty. Or, inside a matrix of liberty, if you prefer thinking in higher dimensions.

Nothing truly good violates liberty, and nothing evil is liberty compliant. (Liberty has room for plenty of ethically neutral acts, though.)

Even when evil people like cops or freelance thugs choose to do something good– something which they have a right to do and which violates no other person or their property, and which benefits someone other than themselves– liberty allows them the choice. It gives them the space in which they act.

When they choose to do wrong, that’s not liberty. It is a violation of liberty.