Saint Petersburg and Moscow are no more dangerous than any other big European cities. If you want to explore the city by yourself, we recommend you to either travel with friends or inform your tour guide and ask him for advice.