Completely agree, but some will say: 1) but that's the Old Testament, I'm saved by grace 2) the Israelites did not believe in God in the first place 3) they didn't have to worry 'cause they were favored anyway...
Old Testament? Yes, but that is exactly the example Paul used in Hebrews chapter four.