What would you do if, while walking with your wife along the street, a man came up and started to attack her with a machete? Would you use violence, which Jesus forbids?
Of course I'm not in that situation, and it's always risky predicting how we would respond in a certain situation. (We tend to give ourselves too much credit.) But here's what I hope I would dot: I'd put my body between the attacker and her. This would protect her and allow her time to get away.
Come to think of it, that's the sort of intervention the Lord initiated on the Cross, isn't it? The brunt of sin's violence came down him. Those in Christ are protected by his sacrifice.