Chapters 7,8,9 looked at our motivation toward the furtherance of the Gospel, and effects our liberty of choices can have on the lives of others. Matters of conscience.
In Chapter 10 Paul warns the Corinthians about the consequences of indulging their liberty leading to idol worship, sexual immorality and discontentment with God's provision. This is no different for the Church today. Chapters 7,8,9 is about the effects on others while Chapter 10 considers the effects on a christian's walk, holiness and effectiveness for service.
When we are tempted, we need to rely upon Christ for a way of endurance, rather that resisting in our own strength.
We are reminded of the prohibition of bowing down before idols through the example made of Israel in the wilderness, and that God will have no other gods before Him.