If good people decide to be bad there are consequences, and when bad people decide to be good there are consequences too.
Read: Ezekiel 33:12
12 “Son of man, give your people this message: The righteous behavior of righteous people will not save them if they turn to sin, nor will the wicked behavior of wicked people destroy them if they repent and turn from their sins.