There seems like there should be some mechanism in place to limit or control their exposure to criminal prosecution.
At a certain point it seems like it would be too risky to oneself to do your job, if there are too many ways you can be prosecuted for doing it.
But on a specific level I have no idea.