Actually it's theoretically very possible.
A rule of thumb I use is when I have any theory (example: the one you just stated), then I myself try to shoot it down, prove it wrong, find a flaw in it. That way, instead of getting into the mere effort to defend a theory, I'm actively improving all my theories, all the time, so that they become better. That's the way to get past these initial ideas, such as the idea that evil could merely be prevented, which needs
examination.
The laws of the universe constrains us from realizing this wish of ours. Such a thing can easily be done regarding our wish to harm another human.
If you disable someone, sure, then they cannot do an action, being disabled.
But....If you do that -- if you constrain people from being able to harm others, such as putting them in a prison cell or isolation, or physically incapacitating them,
then they cannot learn what they need to learn. They only learn that you are a jailer.
Preventing someone from being able to do an evil act by an artificial constraint on their range of action (as if you can only turn right, but never left, etc.) would be like trying to control a teen ager by lifting them physically off the ground,
which would only leave the impulse to do wrong unchanged.
It would accomplish nothing. Merely incite rebellion. There's nothing in it that teaches, or allows learning.
They would have to just think up a new technique to get what they aim to get.
Instead of constraint , they need something that actually helps them learn better.
Which would be things like suffering hurts and attacks themselves, so as to learn what it's like to be on the receiving end, so that they can learn, and understand, and have sympathy, and then intellectually accept it's a wrongful action to do to others.