Deuteronomy 32:4-5 He is the Rock; His work is perfect. For all His ways are just, a God of faithfulness, and without evil; just and upright is He. They have corrupted themselves: they are not His sons; it is their blemish; they are a crooked and perverse generation.
God does not violate his own Law, nor does he force anyone else to do so. “They have corrupted themselves,” and they deserve their end. We all do. It is solely by his mercy and his obedience to his own law* that we escape destruction.
* If God keeps his own Law, does that mean he is under the Law? That he is accountable to it? Of course not. He is accountable to no one but himself. Likewise if we keep the Law, neither does it mean that we are under it. We are under the Messiah, and keep the Law for his sake and for the sake of those who see it.