As in all places, you have to move with caution. If you are traveling on your own, it is important to have a way to communicate with the Mexico City locals in case you do not know Spanish well. Unfortunately, Mexico is not a very safe country overall. The general recommendations that we locals follow are not to walk alone in quiet places, to avoid unfamiliar areas, and, when the sun goes down, to stay extra aware of your surroundings.