If your home is located in a dangerous neighborhood, make sure you have the key to your door ready when you go home, instead of trying to find the key in front of your door.
If you are driving a friend home, make sure wait until your friend gets inside the home before leaving.
Keep some small changes in your pocket at anytime.
If attached by a stranger, do your best to remember how that person looks like and other characters so you could provide that information to police later.
When you park your car, if there is another car behind you, do not get out of your car right after parking, instead, stay inside your car until the other driver is gone then get out.
When walking in the evening, pick streets with street lamps, also walk against traffic.