You cannot change the locks without going through the eviction process. Changing the locks on a squatter who hasn’t had a chance to prove adverse possession in court could result in penalties for the property owner.