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