It would stop in your country but not globally. That means your country loses all expertise and will be much worse off to defend itself.
Case in point: In 2007 Germany passed a "hacking law" (§202c). On its face, it was supposed to prevent black hat work. Except it very predictably also did enormous damage to security research.