I've been to Peru and Bolivia in 2010. I did not encounter any crime problems there. Simply behave as you would in any third world country. Don't show off your wealth, be friendly (but don't trust everybody, either) and keep your eyes open to what happens around you. Then you'll be fine...