The actual leftist parties are part of the opposition. These opposition parties are much more supportive of banning AFD than the incoming centre-right government.
So obviously this is not about silencing opposition, but about fighting an extremist right wing movement which is opposing liberal democracy.