Ask a landlord-tenant lawyer and get answers ASAP
I'm Lucy, and I'd be happy to answer your questions today. I'm sorry to hear about your situation.
If you prepaid rent for June, you do not need to pay your landlord again for June's rent. He cannot evict you for failing to pay rent you already gave him. The security deposit he gets to hold until you leave because sometimes accidents happen when people move out. But if you already went to court and he agreed to return the pre-paid rent, you can go back to the same court and file a Motion to Enforce. Basically what that means is that you'll explain the judge the agreement that was made, and let him know the landlord is violating it. If you have a copy of a signed agreement or a court order, attach it.
If you have any questions or concerns about what I've written, please reply so that I may address them. If I did not address the specific thing that you wanted to know, it may not have come across clearly to me, so please restate that question. It's important to me that you are 100% satisfied with the service I provide. Otherwise, please rate my service positively so that I get credit for answering your question. Thank you.