Which part?
“The statement that we should not judge sinners is part of Christian teaching.
Which part?”
Jesus said, “Judge not that you shall not be judged.”
Jesus also said “Let he who is without sin cast the first stone.”
There is also the teaching about seeing the speck in someone else’s eye and not the beam in your own eye.
Another way it is phrased is hate the sin not the sinner.