Quite safe as long as you're not being stupid - specifically flashing cash and drinking in dodgy bars. Normal "under developed country / relatively large poor population" rules of conduct apply.
Would not worry too much about it - stay in a decent hotel / serviced apartment that has good reviews on tripadvisor etc.