The Act was to provide for the prevention and control of illegal squatting on public and private land.