How to handle disrespectful friends who repeatedly take you for granted?

I’ve noticed two of my friends seem not to respect me. Tina, verbally abused me out of the blue, tonight, in her grief over her dying cat, when I didn’t know what to say; and Noelle attacked me for misinterpreting a social situation, implying that I was stupid, last night; after having already blamed me for her boredom at past social events. I’ve been good and kind to both of them and been there unconditionally.

Updates
2 mo
I used to be a people pleaser, because of my subconscious fears of abandonment from a mild case of dependant personality disorder. I’m still very kind, but not a people pleaser anymore.
How to handle disrespectful friends who repeatedly take you for granted?
Post Opinion