Let me first rephrase the question to: "How should a Christian balance the 3 responsibilities of
- proactively protecting a potential victim,
- administering justice, and
- loving the enemy"
to bring out the 3 elements implicit in the OP.
The role of government
The short answer is that a Christian works together with legitimate authorities (i.e. government) who:
- Creates just law consistent with Christian moral principles, and publish the law so everyone can see and understand
- Provisions a police force that can partly be relied upon for responsibility #1 above
- Has a fair court system that determines guilt based on the law and metes out punishment to offender for responsibility #2 (justice to the victim), and helps act as a deterrent to potential offender, thus also serving responsibility #1
The role of civil government is well established even since the OT, by God's invested the elders (at the city gate) with the exclusive right to try and punish the offenders after listening to witnesses. There is even a provision against revenge killing by the victim's family if the killing is an accident, by providing sanctuary cities. In the period of Kings, God charged the kings to administer justice (such as the famous judgment of Solomon). In the NT era, this government role is assumed to exist (cf Romans 13:1-7).
Of course in a bystander situation where a Christian witnesses a crime in progress or knows a crime is about to be committed, the laws also provide a mechanism so that Christian can lawfully applies force to neutralize the offender (such as weaken but not killing a robber entering your home with a baseball bat, and then binds the robber until the police comes), or even applies lethal force if needed (such as using a concealed-carry gun to shoot a mass murderer before the police comes). In this way, the Christian helps the victim to do self defense consistent with "turning the other cheek" and acts ON BEHALF of the victim, an act of love of putting oneself in danger for the benefit of someone else.
Proper way to love the offender
Loving means doing what is best for the other, which is NOT the same as "turning the other cheek". The latter is the prerogative of the victim, and even so, it is meant as a voluntary action to forego one's right to be compensated to show God's mercy. Jesus forgave all of us from the cross voluntarily as well, and turned his other cheek to demonstrate humanity's brutality which is the main point of "turning the other cheek", i.e. to shame the offender (us) by confronting us with the RESULT of our sins which then leads us to the realization of how selfish and unlovable we are. Right minded people will learn the moral lesson: they don't want to see themselves selfish and unlovable, so after realizing their horribleness, they will turn to God for help.
Since "turning the other cheek" has to be voluntary, the bystander or the government cannot do this for the victim; the most the government / bystander can do is to do what is best for the offender by neutralizing the threat and then working together with the victim during the court sentencing hearing where:
- impact statements are read
- assessing the offender's crime history (first time, repeat offender, etc.)
- determining whether it is a crime of passion, whether it is negligence, mental illness, is there cruelty, premeditation, hatred, etc.
- the age of the offender is taken into account (minor / adult)
- the propensity for the offender to do it again
- etc.
If by the sentencing phase the offender is repentant, and if the victim agrees to a lesser sentence, then THAT is how "loving an enemy" can be practiced by the government. Similarly, the parole board can determine after a period of imprisonment whether the offender has "learned the lesson". Thus, it is consistent with "loving as doing the best for the other" to aid the offender to have a second chance and to use the punishment as a means for transformation. In this spirit, the Catholic church now advocates government that has enough resources to not give capital punishment, which is yet another form of loving the offender. All of us have hurt others even though most of us do not do crimes that meet the threshold of imprisonment, and loving ourselves means to keep working (with the Holy Spirit's help) to transform us into the image of Christ who is sinless. We love our enemies by giving them the same chance to be transformed.
But if the offender is NOT repentant, not even God will forego the punishment at the end of days; so Christians need to instead protect the society against them by keeping the offender in prison.