Hi. Is this as natural as I can write it?
The man stepped dangerously close to the edge of the building and everybody feared that he was going to jump.
I'd include 'the roof'.
The man on the roof of the building stepped dangerously close to the edge and everybody feared that he was going to jump.