Drive away if you feel threatened. Avoid lonely places, especially at night. Walk only on lit walkways away from shrubs and trees. Do not take short cuts. Be alert and walk purposefully.
Confidence deters attackers.
Walk with a friend or stay with a group. Be wary of strangers, on foot or in cars, asking directions - it is better to be rude than be in danger. If someone follows you, change direction and go to a place where there are other people.