In chapter 9 Paul began with a defense of himself and all his liberties that he could potentially partake of. He said that while he could potentially partake, it does not edify. In chapter 10 he states that the reason for the Jew’s stumbling in the wilderness is to serve as an admonition for us. They murmured, the tempted Christ, they were idolaters, and subsequently many got destroyed.
Ye cannot drink the cup of the Lord, and the cup of devils: ye cannot be partakers of the Lord’s table, and of the table of devils. (1 Cor. 10:21)
Since an idol is nothing, if you be invited and the host tells not that it was sacrificed to idols, have a clean conscious and eat. If explicitly mentioned, it is prudent not to partake. Whatsoever you do, you’re supposed to do for the glory of God. There are many things we could potentially do, but they certainly don’t serve to reflect God’s glory.
There are situations that can occur that are not explicitly forbidden by God, but in the partaking of it you may incur others to sin. Your freedom should take into account not just yourself, but those around you. Your liberty should be judged by another’s conscience. Christians should not be uncourteous, but beware that this does not lead to the joining of religious festivals and idol worship.