In scripture we are also told to defend the helpless, promote righteous judgement and obey the law. Jus like Christ did.
We must certainly not sit idly by while others are being attacked or in danger.
(Psalm 82 v 4. Rescue the weak and the needy; deliver them from the hand of the wicked.)
(Pro 24 v 10 If you faint in the day of adversity, your strength is small. 11 Rescue those who are being taken away to death; hold back those who are stumbling to the slaughter.)
Jesus is the primary example of not resisting evil when it was aimed at only himself. However, He often defended people, and spoke up for those others looked down upon. That is a whole different matter. That has nothing to do with defending ego, taking offence, or self preservation.
Jesus taught this so strongly because He came from a culture of law, where the principle was an "eye for an eye" - give them what they deserve- type of payback.
But, instead, He lived out and brought the message of love overcoming hate, and taught us that the meek and the persecuted and so on, are blessed. Forgiveness and Mercy without measure, demonstrating His abounding love and grace in His human form, to the very end, even asking forgiveness from the Father, for those who tortured and crucified Him.
We are definitly not here to battle with people, but with sin. (Romas 6 v 12 - we do not fight against flesh and blood ...)
When we do not retaliate, or place our life of higher value than our attacker or enemy, this is perhaps the fulfilment of the meaning here. When we do this, we are entering into Christ's suffering, Showing the fruits of his Spirit, by turning the other cheek and loving our enemies and leaving room for God to repay if it is needed,
Romans 12:19. We remove our self from the seat of the judge, and stand in the gap for the lost soul.
God is our example, and He does not deal with us as our sins deserve. For this reason, we as ambassadors of Christ, need to be a living testimony to the fact His love is worth far more than our comforts, our lives or this world is to us. We are to build up treasure in heaven and not on earth, all we have comes from the hand of God anyway, and He can give us all we need regardless of how many times it is taken from us.
Possessions, even this life, are not things we cling to, rather we cling to Christ and bear fruits of his love, even in the face of evil done to us. As believers, we are here to reveal His love and the good news to one another and to a lost world. No other reason. Sometimes that means defending someone, sometimes that means not resisting evil. The Spirit of the law is what matters in this regard, and we can apply scripture with common sense and the aid of the Holy Spirit to know what is the most loving thing to do in such situations.