[NYC] My roommate pulled a knife on me because I was playing music loudly.

I rent one bedroom in a three bedroom apartment in NYC. A family of five (Mother, Father, and 3 children under the age of 12) lives in the other two bedrooms. I pay $500 and I am not sure what they pay. While I still continue to pay my share, the landlord said they have stopped paying their share. At first, the family and the landlord allegedly agreed to me moving into the apartment. I moved in, they were very nice to me. Then, suddenly, they did not want me living in the apartment anymore. They began to threaten me to leave the apartment all the time. The mother even threw a toy at me once and grabbed me by my vulva at another instance. So in a passive aggressive attempt to annoy them, I played the music loudly at 12am.

They asked me a couple of times to turn it down and I stated "sorry, I will" but then ignored them. They began banging on the door and I was scared they were gonna break the door open even though it was locked.

So I tried to grab a chair to jam the door. However, the the mother attempted jimmied the lock to my door. I realized what she was trying to do and ran back to the door to keep it shut. She then slammed my door open, in the process hurting my foot and arm, and proceeding to threaten me turn off the music with a knife. I quickly shoved her out the room and re-closed the door and locked it. I grabbed the chair and jammed the door as I wanted to do before she forced the door open.

I then called the police to let them know they were threatening me with a knife. I could hear her and her husband also calling the police telling them that I was playing music loudly and then she stated that I threatened her with a knife.

So finally the police came, they knocked on my door. I let them in and I calmly explained the situation as exactly above. The police even looked through my room. Simultaneously, another cop proceeded to question the family. I could hear the entire family all screaming their different stories. They kept repeating that I was playing loud music and then I pulled a knife on the family when they opened my door. They asked the mother multiple times how did they open my door if it was locked. Obviously, the police understood the situation as soon as the family said their side of the story. The cops asked me what I wanted to do, and I said I wanted to press charges on the mother. I said I wouldn't if she apologized. But they cops arrested her anyways.

The landlord is letting me stay the night in their house (they live downstairs). The cops recommended me to go back to my room in the morning. The cops told me that roommate issues happen like this often.

However, I'm genuinely scared that the husband will retaliate against me because the police arrested her because of our dispute. I am also scared that the women will do something to me while I am sleeping in my room. They can easily come into my room again.

Am I allowed to get a restraining order on her? Can I also put a restraining order on the father even though he did not pull a knife on me.

I cannot leave as this is the most affordable rent and they obviously aren't leaving because they are not paying rent. The landlord said they made an appointment with a lawyer but it's in February. I cannot afford a lawyer. So will a restraining order be enough to protect me?