No one can guarantee that you won't become a victim, but there is much you can do to minimize your chances. Using the "buddy" system while walking at night, keeping to the more brightly lit areas, being aware of your surroundings, and "using your head" can all work to lessen your chances of becoming a victim.
Don't leave valuables, such as a checkbook, wallet, cash or jewelry, out in plain sight. Never carry large sums of money on your person. Open a checking account or get a credit/debit card that will replace the need to have cash on hand.
Go out with a friend; not alone. Walking alone, especially at night, is not a good idea. Always walk purposefully and look confident. DO NOT talk on your cell phone while walking. Stay alert to your surroundings and the people in the area. During darkness, use lighted sidewalks and parking lots for your travels and avoid shortcuts on unlit paths or secluded areas.
Always let others know where you'll be and when you plan on returning.
NEVER hitchhike or give people you don't know rides. Accept rides from persons you know and trust. If you are being harassed by someone who is in a car, walk swiftly or run in the opposite direction to a safe area. If you're really frightened, scream! It's better to be embarrassed than assaulted. Try to remember the license plate number of the vehicle.
Lock all doors and close all windows when leaving your car, whether it's for just a few minutes or several hours. Park in well-lit areas and try not to walk alone in parking lots at night.
Store valuables in the car's truck or, at least, hide them from the view of someone looking through the windows. Stereo components, cellular phones and radar...