Jair Bolsonaro, Brazil’s president, risks losing his October bid for re-election. If he disputes the result, his shrinking but increasingly far-right support base might take to the streets. State institutions should prepare to deal with baseless fraud accusations and to curb possible violence.