Squatting in residential buildings is illegal but taking possession of land or a non residential building is not a crime but it a civil matter. Long term possession of land by a squatter conveys rights to possession if the owner does not place an objection. A squatter must be on the land without permission from the owner so if rent has been paid the rights are void.