Paul gets direct here: run from idolatry. When we take communion, we're in real fellowship with Christ, and when pagans sit down at their idol feasts, they're in real fellowship with something demonic, so you can't sit at both tables. In everyday life, buy your food at the market and accept dinner invitations from unbelievers without grilling anyone about the menu, but if someone tells you the food was offered to an idol, pass on it. The food isn't contaminated, but that person's soul matters more than your freedom, so do everything for God's glory and the good of others.