Avoiding dark alleys is certainly normal advice in Japan as well. http://pds.exblog.jp/pds/1/201112/13/73/b0015373_19495370.jp...
in japan, i've been to plenty of dark alleys during night time, visibly carrying cameras etc. and i've yet to be encounter anything bad. i think it is fairly safe to say, that japan is a LOT saver than most parts of the world.