One thing to keep in mind is even if someone snaps at you for giving them advice, they might still take advice to heart.

Ego and pride prevents them from saying they made a mistake in the moment.

Not arguing that this is a pleasant response to deal with...just, keep giving advice if someone seems like they need it. Politely, of course.