These are all warning markers - danger! - in our history books, written down so that we don't repeat their mistakes. Our positions in the story are parallel - they at the beginning, we at the end - and we are just as capable of messing it up as they were.
Now these things happened to them as examples, and they were written as a warning to us, on whom the ends of the ages have come.
1 Corinthians 10:11 In-Context
We should not test Christ, as some of them did—and were killed by snakes.
And do not grumble, as some of them did—and were killed by the destroying angel.
These things happened to them as examples and were written down as warnings for us, on whom the culmination of the ages has come.
So, if you think you are standing firm, be careful that you don’t fall!
No temptation has overtaken you except what is common to mankind. And God is faithful; he will not let you be tempted beyond what you can bear. But when you are tempted, he will also provide a way out so that you can endure it.