And how do you know that this passage is evidence of God making a mistake?
Does man not have free will to commit acts that are then punishable?
Dunno. However, many of the fundamentalists of my acquaintance consider the KJV to be the most accurate English translation. The translators used the word "repent" for a reason.