Text without context.
47 And while he yet spake, lo, Judas, one of the twelve, came, and with him a great multitude with swords and staves, from the chief priests and elders of the people.
48 Now he that betrayed him gave them a sign, saying, Whomsoever I shall kiss, that same is he: hold him fast.
49 And forthwith he came to Jesus, and said, Hail, master; and kissed him.
50 And Jesus said unto him, Friend, wherefore art thou come? Then came they, and laid hands on Jesus and took him.
51 And, behold, one of them which were with Jesus stretched out his hand, and drew his sword, and struck a servant of the high priest's, and smote off his ear.
52 Then said Jesus unto him, Put up again thy sword into his place: for all they that take the sword shall perish with the sword.
53 Thinkest thou that I cannot now pray to my Father, and he shall presently give me more than twelve legions of angels?
54 But how then shall the scriptures be fulfilled, that thus it must be?
Jesus was telling Peter he could be killed by those who came for Jesus. nothing more or less.
then explains he had the power himself to defend himself, with twelve legions of angels if need be.