Let's look at another example between the act and the desire. A common event nowadays are "women-less weddings" and "women-less fashion shows", events when men dress in drag as part of a charity fund raiser. My father has participated in a few of these, with others from his church no less. These men have no desire to dress in women's clothing (although obviously they have no repulsion from it or at least override it for the greater good), yet they engage in the act of dressing in women's clothing. While they are cross-dressing, they are not Cross-Dressers. So it is with sexuality. The act is not automatically linked with the attraction. One can physically act against their attraction.
Or we can look at something more mundane. I am a truck driver. I hold the CDL and everything. Even when I am not in the cab of a truck, I am a truck driver. Now you can hop on up in the cab of my truck and drive it around, maybe even manage not to damage anyone or any thing in the process. All that means is that you have driven a truck, not that you are a truck driver. While what a person is and what they do are usually linked, it is not an automatic linkage.
The lack of comprehension here is phenomenal. At best you are only preventing acts by that one person. The best cure is to be able to identify these people before they act and get them help.Commit just one act of raping a child and give them the rope. That is the best cure for preventing more pedophillic acts. I support the same treatment for all repeat violent offenders---at least for those who have had at least two trips through the prison system for prior violent convictions.