Whoever remains present at the place of an unlawful assembly or riot after the persons assembled have been lawfully warned to disperse and who is not a public officer or person assisting them in attempting to disperse the same, shall be fined not more than $100 or imprisoned not more than 1 year, or both.