How you deal with getting overwhelmed by people just seeking you to getting your advice in their problems that are making a mountain out of a molehill?

Really, I get really overwhelmed not only the fact that friends or peers ask every time for only my advice in a situation that it has a simple resolve/answer but also every time I give them an advice, they step over and over again in the same mistake, they do what they want anyway, I know is their life but, damn... It's so hard to pay attention to them even when i already said the answer they need (but not what they want to hear), this problem not only gets me annoyed but also makes me so anxious for no reason. I want to hear you guys, what do you do in these cases ?

Edit: some grammar, I'm so upset writing this rn I'm sorry 😔