All the advice you will come across in your life is only true to a point. There are always exceptions and reversals. Even to this piece of advice.
Advice is knowledge; knowing when to apply it is wisdom you gain through time. Imagine it as a lens you can use to get a different perspective on a particular problem.
Critical thinking is your friend.