You can do several things to protect yourself when you feel threatened, to avoid escalation to an attack. The easiest solution is to make noise to attract the attention of protective passers-by.