This phrase means that an individual will not allow other people to control or influence their opinions or thoughts. It is a metaphor that anyone attempting to do so would be like somebody walking through someone’s mind with dirty feet, contaminating and changing their thoughts.