One must have the discernment to judge others based on what scripture says.
Proverbs 31:9 "Open thy mouth, judge righteously, and plead the cause of the poor and needy."
Matthew 7:1-5 "Judge not, that ye be not judged. For with what judgment ye judge, ye shall be judged: and with what measure ye mete, it shall be measured to you again. And why behold thou the mote that is in thy brother's eye, but considers not the beam that is in thine own eye? Or how wilt thou say to thy brother, Let me pull out the mote out of thine eye; and, behold, a beam is in thine own eye? Thou hypocrite, first cast out the beam out of thine own eye; and then shall thou see clearly to cast out the mote out of thy brother's eye."
What this verse is saying is that if you don’t want others to judge you then don’t judge them. It does not say not to judge.
John 7:24 "Judge not according to the appearance, but judge righteous judgment."
1Corinthians 2:15 "But he that is spiritual judges all things, yet he himself is judged of no man."
1Corinthians 5:1-13 "It is reported commonly that there is fornication among you, and such fornication as is not so much as named among the Gentiles, that one should have his father's wife. And ye are puffed up, and have not rather mourned, that he that hath done this deed might be taken away from among you. For I verily, as absent in body, but present in spirit, have judged already, as though I were present, concerning him that hath so done this deed, In the name of our Lord Jesus Christ, when ye are gathered together, and my spirit, with the power of our Lord Jesus Christ, To deliver such an one unto Satan for the destruction of the flesh, that the spirit may be saved in the day of the Lord Jesus. Your glorying is not good. Know ye not that a little leaven leavens the whole lump? Purge out therefore the old leaven, that ye may be a new lump, as ye are unleavened. For even Christ our Passover is sacrificed for us: Therefore let us keep the feast, not with old leaven, neither with the leaven of malice and wickedness; but with the unleavened bread of sincerity and truth. I wrote unto you in an epistle not to company with fornicators: Yet not altogether with the fornicators of this world, or with the covetous, or extortionists, or with idolaters; for then must ye needs go out of the world. But now I have written unto you not to keep company, if any man that is called a brother be a fornicator, or covetous, or an idolater, or a railer, or a drunkard, or an extortioner; with such an one no not to eat. For what have I to do to judge them also that are without? do not ye judge them that are within? But them that are without God judges. Therefore put away from among yourselves that wicked person."
Romans 2:1-3 "Therefore thou art inexcusable, O man, whosoever thou art that judges: for wherein thou judges another, thou condemns thyself; for thou that judges doest the same things. But we are sure that the judgment of God is according to truth against them which commit such things. And thinks thou this, O man, that judges them which do such things, and doest the same, that thou shall escape the judgment of God?" [This is speaking of judging another's behavior, when in reality your doing the same things.]
James 4:11-12 "Speak not evil one of another, brethren. He that speaks evil of his brother, and judges his brother, speaks evil of the law, and judges the law: but if thou judge the law, thou art not a doer of the law, but a judge. There is one lawgiver, who is able to save and to destroy: who art thou that judges another?" [This is speaking of Slandering a fellow Christian, not of judging.]
The Church of God Proclaimed