This is a good subject, and one I have struggled with.
The scripture that sealed the deal for me was Nehemiah 4, when the Jews were experiencing violent opposition (as they were rebuilding the walls of Jerusalem)...
They were ordered to place guards...with weapons, to protect themselves.
IOW, self-defense is “ok” from a Biblical perspective.
Neh 4:13 Therefore set I in the lower places behind the wall, [and] on the higher places, I even set the people after their families with their swords, their spears, and their bows.
He said to them, But now if you have a purse, take it, and also a bag; and if you dont have a sword, sell your cloak and buy one.
-Luke 22:36