A man stood in front of a high-rise window as he was about to jump, and the alarm echoed in the street.