Before starting, one thing to point out. People give advice for multiple reasons. Whether they genuinely want to help or are simply boasting, your aim should never be to offend them.
Let's take an example where someone, named Jack, gives his junior developer advice on how to get to a technical director position like Jack did. If I were the junior developer, I'd ask myself the following questions to determine whether I should take Jack's advice.
Control
You can only ever control a tiny part of your success.
Which opportunities was Jack offered based on management/client needs?
How appreciative were Jack's superiors of his work?
Which project(s) that Jack was assigned to contributed to him being perceived as valuable?
Which professional relationship(s) did Jack form that yielded in his success and how much of a bet was it for his connections to lead to his success?
Competition
Competition around you is an important variable in your career growth.
How many people was Jack competing with when he started his career v/s how many do I have to compete with now?
How competitive were the people around Jack earlier in this career v/s my competition now that the market has evolved?
How did the market evolve during Jack's career and how often did Jack have to adapt his skills to remain competitive?
Cost
Career choices affect your personal life too.
How far is/was Jack willing to go to please his superiors while maintaining a healthy personal life?
How does Jack define a healthy work-life balance?
How different is Jack's life compared to mine?
What are Jack's career and life goals v/s mine?
Conclusion
Any feedback or advice opens up the opportunity to think whether you're on the right track. Listen without prejudice, reflect on how relevant it is in your reality, and only then, make a decision to take it or leave it.
