Adverse possession is very difficult to do here in California. It requires you to notify the property owner and pay property taxes on the property. After those two conditions are met, you can apply to own the property outright after 5 or more years.
Also, adverse possession does not work against the government. You will lose every single time.