You should be acting immediately around ensuring the safety of that person, which would be about talking to them, about getting help; and the most immediate help, of course, if you can't... if there's no one around you, is to call 111 on your mobile phone, or whatever emergency service that you have available in your community. 