Put your safety first. Whatever else you do, do not compromise your own safety. This includes not going into any area that is unsafe. Moreover, don't place yourself in a precarious position to try and reach the cat. Finally, do not attempt to touch a stray cat unless you are absolutely certain it won't attempt to bite or scratch you.