What does the Bible say about self-defense?

 
What does the Bible say about self-defense? 
When is it right for a Christian to defend himself/herself?
SOURCE: Got Questions Ministries - https://www.youtube.com/@gotquestions
BIBLE VERSES:

Luke 22:36 (ESV)
He said to them, “But now let the one who has a moneybag take it, and likewise a knapsack. And let the one who has no sword sell his cloak and buy one.

Exodus 22:2–3 (ESV)
If a thief is found breaking in and is struck so that he dies, there shall be no bloodguilt for him, 3 but if the sun has risen on him, there shall be bloodguilt for him. He shall surely pay. If he has nothing, then he shall be sold for his theft.

Acts 16:37–39 (ESV)
But Paul said to them, “They have beaten us publicly, uncondemned, men who are Roman citizens, and have thrown us into prison; and do they now throw us out secretly? No! Let them come themselves and take us out.” 38 The police reported these words to the magistrates, and they were afraid when they heard that they were Roman citizens. 39 So they came and apologized to them. And they took them out and asked them to leave the city.

Proverbs 25:21–22 (ESV)
If your enemy is hungry, give him bread to eat,
and if he is thirsty, give him water to drink,
22 for you will heap burning coals on his head,
and the Lord will reward you.

Matthew 5:39 (ESV)
39 But I say to you, Do not resist the one who is evil. But if anyone slaps you on the right cheek, turn to him the other also.

Romans 12:17 (ESV)
Repay no one evil for evil, but give thought to do what is honorable in the sight of all.

James 3:17 (ESV)
But the wisdom from above is first pure, then peaceable, gentle, open to reason, full of mercy and good fruits, impartial and sincere.
 
*