Use "must" when you want to say that you or someone else needs to do something (or you get in trouble). For example: I must do my homework.
Use "must not/mustn't" when you or someone else needs to avoid doing something or are/is not allowed to do it. For example: You must not be late for class OR You must not smoke.