Why does the Bible say “judge and you will be judged” and also that god’s followers will judge the world?

Is that not a contradiction? Luke 6:37 and 1 Corinthians 6:2. How do these verses not contradict each other?