Sounds to me that you are taking liberties in interpreting those scripture verses.
Matthew 18:17 shows that Jesus taught Christians to treat unrepentant sinners as pagans or tax collectors.
1 Corinthians 5:11 indicates not to even eat with unrepentant sinners.