Help?

So I had a friend I used to have a crush on, and it was extremely unhealthy/toxic crush for me at the time. I had horrible anxiety, depression and I was stringing myself along (and she was kind of stringing me along as well). She left school for a few months and I felt a huge weight off my shoulders, but she’s coming back to school in the spring and for my mental health I told her we may not hang out as much/I might seem distance but it’s because I’m scared and anxious of putting myself in the situation to like her again, bc it was just not a good time for me. I didn’t say me and her couldn’t hang out, I just told her I would proceed with caution to ensure that I do not end up like I was before. She didn’t like it and said “we weren’t friends anymore bc you’re throwing me away” but In reality I just wanted her to respect my boundaries.

And before you guys are like “you jumped to conclusion, you don’t know how you’ll feel when you see her” I know my body/emotions and I have become quite aquatinted with myself, so I know what I did was 100% right. But what can I do from here?