It takes a vice to check a vice, and virtue is the by-product of a stalemate between opposite vices.
Eric Hoffer (1963). “The Ordeal of Change”

It takes a vice to check a vice, and virtue is the by-product of a stalemate between opposite vices.