Answer:
This idiom means that you should try to understand someone before criticising them
Explanation:
To spend time trying to consider or understand another person's perspectives, experiences, or motivations before making a judgment about them. I know that certain people can come across as selfish or mean-spirited, but you should try walking a mile in their shoes before you dismiss them too quickly.
(copied from the internet after searching ' what does the phrase walk a mile in their shoes mean?)