Did I do the right or wrong thing with my mom?

FictionalCharacter
So right now I’m locked in my room.
3 days before, I visited my mom and she was ranting and yelling that she’s getting abused by my dad and is scared for her life. I offered her to come stay with me, then she kept yelling and ranting and we got into a argument about certain topics. To the point I needed to walk away and go to my place to heal.

Then my mom called me to help her move into my place, but I was too exhausted and told her tomorrow. But she couldn’t wait and started dropping all of her stuff at my place with anger and hostility. I was locked in my room so I wasn’t in her way.

the next day, she was still ranting about my dad and that I needed to come up with a plan for all of us to move. I still had a headache from the day before and explained that “I’m tired of her and my dad toxic marriage and them having their children to fix it.” Which again, lead to another argument with my mom yelling. To the point my neighbors banging on the wall to keep the noise down.

Now is the 3rd day.

I'm in my room and I hear banging and scraping. That I come out concerned and I see my mom upset and organizing the pantry. That she tells me to "stop buying oatmeal, candy and cereal. You have more than enough. 😠" I clarified that I don't buy candy and it's probably candy from Halloween. And I see lollipops my brother brought over from the house when my mom moved in here. I told her I don't eat lollipops. And she said "your father brought those." And I responded with "okay. Why are you upset with me cause of that?"

Then she said "STOP BUYING THIS STUFF" and I said "okay fine, I won't buy anything where I'm living."

Then she got upset and said "WHY DO YOU TWIST THINGS? I'm trying to help us so you don't squander! Fine! THROW MONEY AWAY!"

And I told her "you need to stop yelling."

"NO! I am your mother! You will not tell me to stop!"

And I said "this is my place."
Mom: Oh, so you want me to leave?"

Me: "go ahead" and I walked away locking myself in my room.
Did I do the right or wrong thing with my mom?
2 Opinion