"Living by the sword" .... in the context Jesus spoke. Was about living in criminality. Romans 13:4 speaks of God's agent who carries the sword to deal with criminality. Hence.. "Die by the sword."
Peter was acting like a criminal. Imagine a police officer comes to arrest your friend and you shoot at the officer? You then become a criminal. Jesus warned Peter to stop acting like a criminal. Then Jesus much to the amazement to everyone involved, healed the wounded arresting officer as to prevent Peter going to jail.
I think its criminal how so many won't think. They refuse to. And, while emoting conclude with how they feel about what happened, based upon their fantasy image of Jesus. Some of them might as well be worshiping statues of Mary the way they refuse to think with what the context states...and by resisting and refusing to learn the meaning of things that existed at the time the Bible was written.
Criminals at that time "lived by the sword." They did not have guns. Peter was acting like a criminal at the time of Jesus arrest.
And yet you were shown in the context of the account of Peter cutting off the ear of the soldier that Jesus reprimanded him not for being a criminal but because the time for them to take Jesus away had come.
You see, you are doing the very thing you are railing against others for doing....like scripture says, when someone attacks another without cause it's usually because they are projecting their own sin onto others.
Let's look at the passage again...Jesus just talks about the time being upon them and then we have this....
10 Then Simon Peter, who had a sword, drew it and struck the high priest’s servant, cutting off his right ear. (The servant’s name was Malchus.)
11 Jesus commanded Peter, “Put your sword away!
Shall I not drink the cup the Father has given me?”
12 Then the detachment of soldiers with its commander and the Jewish officials arrested Jesus. They bound him 13 and brought him first to Annas, who was the father-in-law of Caiaphas, the high priest that year.14 Caiaphas was the one who had advised the Jewish leaders that it would be good if one man died for the people.
So you see, Jesus said nothing about being a criminal, rather He said that it was time for the prophecy to be fulfilled. The same account is found in Matthew 26 and again context shows us that it was about fulfilling prophecy not criminal acts that Jesus reprimanded Peter for.
Then the men stepped forward, seized Jesus and arrested him. 51 With that, one of Jesus’ companions reached for his sword, drew it out and struck the servant of the high priest, cutting off his ear.
52 “Put your sword back in its place,” Jesus said to him, “for all who draw the sword will die by the sword. 53 Do you think I cannot call on my Father, and he will at once put at my disposal more than twelve legions of angels? 54
But how then would the Scriptures be fulfilled that say it must happen in this way?”
55 In that hour Jesus said to the crowd, “Am I leading a rebellion, that you have come out with swords and clubs to capture me? Every day I sat in the temple courts teaching, and you did not arrest me. 56
But this has all taken place that the writings of the prophets might be fulfilled.”Then all the disciples deserted him and fled.
Now I know that this context does not support your position but then again, we aren't interested in your position but rather what scripture says.