If you walk in someone elses shoes, you view life from their perspective.
"Before you condemn him for his crime, maybe you should take a walk in his shoes"
(Before you say that he was wrong, look at his situation and decide if you really would have done anything differently) for example, it is easy to say that you would never steal. However if you were a poor, starving person that had run out of options...