What is the meaning of [Don’t judge a man until you have walked a mile in his boots]

“Do not pass judgment on somebody until you have been in the same situation, undergone the same experiences, or tried the same thing.”