All things being equal, God does desire that no one should perish. But all things are not equal. Sin is real. Sin violates God’s holiness and righteousness. God also is not willing that sin should go unpunished. He desires as well that His holiness should be vindicated.... When the preceptive will is violated, things are no longer equal.
From Can I Know God’s Will? pp. 22-23.
HT: Steve Cornell