São Paulo cannot be considered a safe city. Although the locals, especially those working in the tourism infrastructure, are friendly and welcoming, street crime is rampant in the metropolis. Avoid unpleasant incidents by not carrying large sums of money.
You should not leave your belongings, especially valuables, unattended. Try not to visit those suburbs that are not related to tourist routes. In case of problems, ask the police, who are plentiful on the streets, or the security guards of the nearest establishments.