It’s not spinning. Self defense isn’t wrong.
We should never attack anyone unless our lives, or physical well being depend on it.
What if the soul depends on it? The state of the soul is more important than the physical life. Corporal punishment is just, not abuse, against a wife who scandalizes children or puts her own, or her husband's, soul at risk of damnation.
So we don’t break the 5th commandment.
It's not breaking the 5th Commandment, just as the Lord commanding the Hebrews to wipe out rival Godless tribes in the OT, and Jesus' commands that His enemies be brought before Him and killed in Luke 19:27, and the Holy Crusades, and Pope St. Pius V's Horrendum Illud Scelus, which handed sodomite priests over for execution, weren't breaking the 5th Commandment.