Real Life Warnings
The narrative passages of the Old Testament are not just history. They show how God interacts with His people when they are faithful (in blessing), and when they are unfaithful (in judgement). Paul used episodes from Israel's wilderness wanderings to illustrate some things which God will not tolerate. They were also the same behaviour patterns which were considered normal in Corinthian society, from which God had called the believers.
The problem lies deeper than wrong actions. Every sinful activity is preceded by an evil desire in the heart (James 1:13-15). That is where changes need to happen. Behaviour-modification by itself is doomed to fail. Instead, we need to know what pleases the Lord and what He hates. Without that teaching true discipleship cannot develop. So Paul highlighted episodes from the wilderness journey: idolatry (Exodus 32:1-6), alcohol fuelled orgies (Exodus 32:6), sexual immorality (Numbers 25:1-2), questioning God's sovereignty (Numbers 21:4-6) and grumbling (Numbers 16:41).
Each sinful episode which ended in judgement and death had started with a wrong desire. Those accounts are real life warnings to all God's people in any age; but especially to the church in Corinth where the pagan culture encouraged all those desires. The apostle was calling the church to be counter-cultural. If they were to be true disciples of Jesus they could no longer be disciples of the Evil One, fulfilling his desires (John 8:44). They needed to have a clean heart and right desires (Psalm 51:10).
Warnings are only useful if you know that they apply to you. The apostle's directness can be applied to many believers today who live in cultures which reject the supreme Lordship of Jesus Christ. But first we need to apply our minds to identify the behaviour patterns into which we easily slip. Once we see that we are doing the wrong action, we can pinpoint the area of our heart which is brewing up evil desires. Confess those desires to the Lord and reject their authority over your life. Ask the Lord to help you be satisfied by His love, and choose to accept His grace. Our hearts change as we abandon our selfish striving for satisfaction and learn to receive the love of God in Christ Jesus.