What is the meaning of [Better to ask the way than go astray]

Some people are too proud to admit that they don’t know, and, by refusing to
ask, go astray. That is to say, they do the wrong thing or become lost. The
proverb advises us to pocket our pride and ask for advise in order to avoid
such unnecessary consequences.