If bad people do the right thing for the wrong reasons, we should be thankful, not angry.
Even for clearly despotic regimes, overthrowing them is not the obviously right thing.