What to do if I’m renting a room from my sister and her boyfriend and he thinks its okay for him to enter my bedroom at any time he wants to?
Your question is not one so much of legality or illegality but rather one of being respectful and honoring boundaries. Since you are a tenant in the unit you share with your sister and your boyfriend, he has no right to simply enter your bedroom without your permission whether you are home or not at home.