In Japan, it's not so dangerous. But if you're woman, you should be careful walking alone after dark.
I agree with Daisuke-san!
Generally speaking, Japan is relatively safe.
But, if you're a woman, you should avoid to walk around alone in deserted streets or parks at night.