It is unlawful to be found in any place where gambling or prostitution is being conducted with knowledge of such activity or to give or attempt to give any signal intended to give warning of the approach of any police officer to any person in or about any place where any illegal activity is being conducted. (Prior code § 7-3-5)