The Scottish government wants organisers to cancel events involving more than 500 people.