he hated Nazism, but he was drafted and those who refused the draft were sent to concentration camps. Thus he had no choice but to go to the front against the soviets, where he sabatoged his platoons machine gun Then surrendered without resistance.
This is a True story according to his diary.
According to Russia Beyond
(Though that means individuals who switched to the correct side, towards the end of the war there were some situations in which some soldiers fought the NSDAP party soldiers - i.e. Gestapo and SS)