It's turtles all the way down. If we had a way to perfectly prevent people from doing undesirable things, we wouldn't need courthouses to begin with. The system doesn't need to be perfect, it just needs to be good enough that reliably circumventing it isn't worth the effort.