A person in a gathering who refuses to obey the reasonable official request or order of a peace officer or firefighter to move, for the purpose of promoting the public safety by dispersing those gathered in dangerous proximity to a fire or other emergency, is guilty of a misdemeanor.