Theoretical of course....since I saw nothing in that scripture that supports Jesus issuing that warning over concerns over the temple guards.
Then why did He say to grab the swords on their way to the garden?
The swords were taken as a warning against violence, purely for defensive purposes for the disciples, certainly not to protect Himself. The only persons that could threaten violence in this setting were the Temple guards.