guilt by association fallacy
reductio ad Stalinum
An informal logical fallacy that intends to discredit the validity of an individual or group and the individual's or group's logical argument by accusing, denouncing, attacking, or persecuting the target individual or group as anarchist, communist,[1] Marxist, socialist, Stalinist, or sympathetic towards these ideologies.