Três Rios, despite being a fairly small city, has a relatively moderate safety index. It's best to travel during the day and avoid some regions that might be unsafe. Make sure to keep an eye on your belongings at all times and avoid showing off any high-value possessions, especially electronics. Pre-booking your accommodation in a safe neighborhood and using reliable transportation means can make your trip safer. However, locals are friendly and incidents with tourists are not common. A general level of precaution, like you'd use in any foreign city, should allow you to have a safe trip.