Paul gave commands to keep the church working and orderly in 2 Thessalonians 3:
I am not a pastor or an elder of a church. They bear responsibilities for the standing of an entire local church.
Speaking as a simple Christian brother, I put more weight on Romans 12:
They would if and only if they repent, same as me.
See also Do not eat with what kinds of people?.
Get rid of these harmful elements.6 In the name of the Lord Jesus Christ, we command you, brothers and sisters, to keep away from every believer who is idle and disruptive and does not live according to the teaching you received from us.
Paul wanted to keep the church pure in 1 Corinthians 5:14 Take special note of anyone who does not obey our instruction in this letter. Do not associate with them, in order that they may feel ashamed. 15 Yet do not regard them as an enemy, but warn them as you would a fellow believer.
11 now I am writing to you not to associate with anyone who bears the name of brother if he is guilty of sexual immorality or greed, or is an idolater, reviler, drunkard, or swindler—not even to eat with such a one.
Paul was serious. John was also, 2 John 1:13b Purge the evil person from among you.
Barnes explained:9b Whoever remains in His teaching has both the Father and the Son. 10 If anyone comes to you but does not bring this teaching, do not receive him into your home or even greet him. 11 Whoever greets such a person shares in his evil deeds.
That's the nascent church back then. What about today?this entire separation and withdrawing from all communion was necessary in these times to save the church from scandal, and from the injurious reports which were circulated. The pagan accused Christians of all manner of crime and abominations. These reports were greatly injurious to the church.
I am not an apostle like Paul and John. They bear immense responsibilities for the nascent church. They had to get it right from the start.Whether this rule in its utmost strictness is demanded now, since the nature of Christianity is known, and since religion cannot be in "so much" danger from such reports, may be made a question. I am inclined to the opinion that the ordinary civilities of life may be shown to such persons; though certainly nothing that would seem to recognize them as Christians. But as neighbors and relatives; as those who may be in distress and want, we are assuredly not forbidden to show toward them the offices of kindness and compassion. Whitby and some others, however, understand this of the communion of the Lord's Supper and of that only.
I am not a pastor or an elder of a church. They bear responsibilities for the standing of an entire local church.
Speaking as a simple Christian brother, I put more weight on Romans 12:
Would these people inherit eternal life?18 If possible, so far as it depends on you, live peaceably with all.
They would if and only if they repent, same as me.
See also Do not eat with what kinds of people?.