Jesus also said "Sell your garment and buy a sword" (Luke 22:36-38). When the disciples returned with only two swords among the lot of them Jesus said "it is enough".
In other words, when Jesus said "he who lives by the sword dies by the sword" = offensive moves, when Jesus said "Sell your garment and buy a sword" = defensive moves. You'd have to understand both versus contextually to understand.
Freedom is not: doing everything you want to.
Freedom is: not having to do what you don't want to do.
~ Joyce Meyer