Which cup are you drinking from?
You cannot have communion with both God and devils. You can only drink from one cup. If you are actively participating in sin then you are drinking from the cup of the devils and have no right to the Lord's cup. You are in communion with Satan and not the LORD. So which cup are you drinking from? For I have received of the Lord that which also I delivered unto you, That the Lord Jesus the same night in which he was betrayed took bread:  And when he had given thanks, he brake it , and said, Take, eat: this is my body, which is broken for you: this do in remembrance of me.  After the same manner also he took the cup, when he had supped, saying, This cup is the new testament in my blood: this do ye, as oft as ye drink it , in remembrance of me.  For as often as ye eat this bread, and drink this cup, ye do shew the Lord's death till he come.  Wherefore whosoever shall eat this bread, and drink this cup of the Lord, unworthily, shall be guilty of the body and blood of the Lord.  But let a man examine himself, and so let him eat of that bread, and drink of that cup.  For he that eateth and drinketh unworthily, eateth and drinketh damnation to himself, not discerning the Lord's body.  For this cause many are weak and sickly among you, and many sleep. 1 Corinthians 11:23-30 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 Corinthians 10:21