When does the government have the right to make reasonable rules regulating assemblies?

The government has the right to make reasonable rules regulating assemblies if it is necessary to protect against the incitement of violence, or the endangerment of people's lives. The First Amendment gives Americans the right to gather peacefully.