How can the risk of falling be avoided?

By closing the roof access hatch after stepping onto the roof.

Closing the roof access hatch

The simplest way of avoiding a fall is to close the roof access hatch after stepping onto the roof. If the roof access hatch is closed, the roof access hatch will not fall into the locked position and it can also be opened from the outside.