I was dealing with this just this last week. Bottom line, we are not to judge in a way that attacks a person or is hypocritical, but we are commanded to judge other's teachings and moral behavior, even naming names in church. We are commanded to defend Christianity from attacks. We are to do all in love. A few verses about judging, defending, etc.
James 4:11-12
Matthew 7:1-5
1 Cor. 5:1-5
(Titus 3:9-11) But avoid foolish disputes, genealogies, contentions, and strivings about the law; for they are unprofitable and useless. Reject a divisive man after the first and second admonition, knowing that such a person is warped and sinning, being self-condemned.
(2 Timothy 2:24-25) And a servant of the Lord must not quarrel but be gentle to all, able to teach, patient, in humility correcting those who are in opposition, if God perhaps will grant them repentance, so that they may know the truth,
(1 Peter 3:15) But sanctify the Lord God in your hearts, and always be ready to give a defense to everyone who asks you a reason for the hope that is in you, with meekness and fear;
(Col. 4.5-6) Walk in wisdom toward those who are outside, redeeming the time. Let your speech always be with grace, seasoned with salt, that you may know how you ought to answer each one.
(Phil. 1:17) “…I am appointed for the defense of the gospel.”
(Jude 3) I found it necessary to write to you exhorting you to contend earnestly for the faith which was once for all delivered to the saints.
(Titus 1:7) [A leader must be] holding fast the faithful word as he has been taught, that he may be able, by sound doctrine, both to exhort and convict those who contradict.
(Titus 1:13) Therefore rebuke them sharply, that they may be sound in the faith,
(Phil. 4:2) I implore Euodia and I implore Syntyche to be of the same mind in the Lord.
(Gal. 2:11) Now when Peter had come to Antioch, I withstood him to his face, because he was to be blamed;
(2 Tim. 4:9) for Demas has forsaken me, having loved this present world,
(2 Tim. 4:14-15) Alexander the coppersmith did me much harm. May the Lord repay him according to his works. You also must beware of him, for he has greatly resisted our words.