It shall be unlawful for any person to endanger the general public in a park by taking part in any games involving thrown or otherwise propelled objects, such as balls, stones, javelins, and the like in such a way as endangers the safety of those in the immediate vicinity. The playing of potentially dangerous games or contact sports, such as football, baseball, or soccer is prohibited except on the fields, courts, or areas provided therefor. Park areas may not be used for golf practice or driving ranges except with permission of the department in advance.