God allows us to judge. He gave us laws to abide by, but He knew not everyone would follow those laws, so that's why he established judges and a court system in the Bible. What He said was that BEFORE we judge we need to take out the speck that's in our own eye.
I would suggest you go back to church to learn the true Word from God, and not rhetoric and hearsay passed down from others who are probably not even Christians. In love, I ask you to find out for yourself.
More information about formatting options