Don’t take it to heart. The only person who should have to deal with the consequences of their actions, decisions and choices is that person…and that person alone.
That person is under no obligation to take what you say, and implement it in their life. And you are under no obligation to burden yourself over the choices someone makes or does not make. The problem wasn’t yours to begin with.
When giving advice, lead with positivity, and for your sake, leave with positivity.