The corporate authorities of each municipality may prevent vagrancy, begging, and prostitution.
65 ILCS 5/11-5-4