Despite what Paul says in 1 Cor 8/9, i think the warning is there from the same Paul in His conclusion here:
1 Cor 10:14Therefore, my dear friends, flee from idolatry. 15I speak to sensible people; judge for yourselves what I say. 16Is not the cup of thanksgiving for which we give thanks a participation in the blood of Christ? And is not the bread that we break a participation in the body of Christ? 17Because there is one loaf, we, who are many, are one body, for we all share the one loaf.18Consider the people of Israel: Do not those who eat the sacrifices participate in the altar? 19Do I mean then that food sacrificed to an idol is anything, or that an idol is anything? 20No, but the sacrifices of pagans are offered to demons, not to God, and I do not want you to be participants with demons. 21You cannot drink the cup of the Lord and the cup of demons too; you cannot have a part in both the Lord’s table and the table of demons. 22Are we trying to arouse the Lord’s jealousy? Are we stronger than he?
1 Cor 10:14Therefore, my dear friends, flee from idolatry. 15I speak to sensible people; judge for yourselves what I say. 16Is not the cup of thanksgiving for which we give thanks a participation in the blood of Christ? And is not the bread that we break a participation in the body of Christ? 17Because there is one loaf, we, who are many, are one body, for we all share the one loaf.18Consider the people of Israel: Do not those who eat the sacrifices participate in the altar? 19Do I mean then that food sacrificed to an idol is anything, or that an idol is anything? 20No, but the sacrifices of pagans are offered to demons, not to God, and I do not want you to be participants with demons. 21You cannot drink the cup of the Lord and the cup of demons too; you cannot have a part in both the Lord’s table and the table of demons. 22Are we trying to arouse the Lord’s jealousy? Are we stronger than he?