Squatter's rights only applies if someone has lived in a place for a long period of time uncontested. I can't remember the exact number, it might be 6 months or a year (in some places of the US). If someone just breaks into your house, they have no rights and are intruders.