When has legislation worked to prevent technology? Just look at North Korea and see how well that's working.
More explicitly: there are many cases of regulation shaping the course that technology takes. It's a strawman (of the variety people are trying to call out here) to say that we're either helpless in the face of technology or we must halt its progress. There's a huge middle ground of regulating and guiding the process.