"But now I have written to you not to keep company with anyone named a brother, who is sexually immoral, or covetous, or an idolater, or a reviler, or a drunkard, or an extortionernot even to eat with such a person." 1 Cor 5:11.
The second passage speaks of rejecting God:
"Finally then, brethren, we urge and exhort in the Lord Jesus that you should abound more and more, just as you received from us how you ought to walk and to please God; for you know what commandments we gave you through the Lord Jesus. For this is the will of God, your sanctification: that you should abstain from sexual immorality; . . "
"Therefore he who rejects this does not reject man, but God, . . " 1Thess 4:1-8
Jesus ate with sinners.