Good can defeat evil. In the end, it does so totally, by the power of God.
But when good is in short supply, or busy somewhere else, there are times when incompetence and sheer mutton-headedness will have to do.
Just by personal experience, we could have had a terrible problem with identity theft, had the thief not made a really stupid mistake that not only saved us, but also made his crime completely useless to him. No, I mustn’t say what that mistake was: whoever is the criminal moron out there, we want him to continue making it.