With the words, “I am a jealous God”, God impresses upon everyone, that He strictly observes the manner in which His Commandments are obeyed, and most assuredly punishes those who transgress them, but rewards those who keep them.
James 4:12: There is one lawgiver, who is able to save and to destroy.