If hearing the advice or comment is something I find painful and they continue to act that way I usually will tell them something like; "thanks for the input....I'll think about that but I'm already decided about what course I am taking." If somebody keeps up after that- I make a decision based to limit or stop contact with them.
When I'm really hurting I won't discuss things close to my heart with people who haven't proved worthy of hearing it. Over many years I've kept very few of my pre-recovery friends- including those who know about my family members addictions and those who don't.
I've purposefully cut off contact with those who continually bring me down. There were a two or three that were especially hard for me to make the break with- mainly because they could not, would not understand or care about me in the first place- much less see why I don't enjoy their company. I chose to avoid a confrontion because I didn't want to engage them anymore.