You picked two odd examples. A beach is debatable as being capable of being opened and closed, and whether or not a person is tresspassing, but parks are generally managed by the state or country. Of course they can close down. They typically close from subset to sunrise.