They tried that in several countries.
The US made any kind of intrusion a crime, and Germany went so far as to make hacker tools illegal. The result was that law-abiding hackers in those nations watched their skills atrophy while nations like Romania, China and Russia have effectively pwned all the nations that cracked down on their domestic hackers.