Landmark case against former president has set Brazil on edge, with fears of violent protests against a guilty verdict.