Remember what happened at Peor? We still suffer today because of that sin, for which God made many Israelites very sick.
The things that happened to those people are examples. They were written down to teach us, because we live in a time when all these things of the past have reached their goal.
We must not take part in sexual sins, as some of them did. In one day twenty-three thousand of them died because of their sins.