Mandatory rules for artificial intelligence are part of a planned government crackdown to combat the misuse of high-risk technology.