I'm not quite sure what you mean, or what in AI safety you see as analogous.
For other technology, certainly building and using certain things is illegal - you can't make hand grenades, lots of chemicals; I'm pretty sure you can't own certain instruments of crime, counterfeit money, etc. Many things you can do; it's not all or nothing.