It means to not ask for advice from someone who's biased or has a vested interest — if you ask a barber or hairdresser if you need a haircut, they'll obviously say yes, because they make money from getting you in the chair and giving you a trim.