Nelson Mandela was a convicted criminal when he was elected president of South Africa. Vaclav Havel was a convicted criminal when he was elected president of the Czech Republic. Corrupting the legal system to criminalize political opposition does very little to make a political figure less popular. Often, it just makes them martyrs.