Crime in Morocco is mostly petty crime such as scams and pickpockets. It's very unlikely that you'll be assaulted or hurt as a tourist. That being said, there are still a few things I wouldn't recommend doing and some areas of Morocco that should be avoided.