The government would be justified in limiting freedom of assembly in the scenario where "an assembly advocating school closure through violence" is taking place. This scenario poses a threat to public safety and incites potential violence, which can justify government intervention to maintain order and protect citizens.
In contrast, the other scenarios mentioned—such as a peaceful protest in a public park, a religious gathering in a private residence, and a community meeting to discuss local issues—do not present a direct threat to public safety and are generally protected under the right to freedom of assembly.