They may attempt to evict you if you have violated some provision of the lease agreement you signed. For example, if your boyfriend was dealing drugs from your apartment and your landlord can show that you permitted this to happen then you could be evicted. If you had no idea this was happening, and he was not staying their in violation of the lease then you may be able to persuade them to let you stay.
If they attempt to evict you, and you feel you have not violated any term of your lease then you may appear at the eviction proceeding and argue to the judge that you have not violated your lease and do not wish to be evicted. If the landlord is able to demonstrate by a preponderance of the evidence that you violated the terms of your lease then you will be evicted. Otherwise you shouldn't be.
Obviously any decisions rendered in local courts may be appealed, however at some point you need to assess the costs versus benefits of pursuing litigation.
Please reply if I can help further.
Remember to click ACCEPT only when you are satisfied with your answers. This is how we get paid for our time with your questions. I would also appreciate any positive feedback you could provide. If you are not satisfied then please reply to me so I can further assist you or find someone else to help. I am not your attorney. Therefore no attorney-client relationship exists and any communications on this website are not subject to the attorney-client privilege. For this reason, please do not divulge any personal information and use this site only for hypothetical questions. This forum is for general questions and answers and I cannot provide you with applicable law or legal opinions or advice in your jurisdiction. Please seek the advice of a competent attorney in your jurisdiction. While I can answer general questions and discuss general legal principles, I cannot give you legal advice in your state. The internet is a great place to get general information but should not be seen as a substitute for the attorney-client relationship or the services of a good lawyer in your state.