Lula and Dilma certainly were criminals, but that doesn't make Bolsonaro right.
Partisan mentality is a logical fallacy. It's divide and conquer. Keep people distracted in an infinite tug-of-war while some people collude and benefit.
They were not criminals. Dilma did not commit a single crime, and Lula's trials were completely fabricated. Even if they were, I'm pretty sure they wouldn't let their country in this situation.