Mustn't / don't have to

Mustn't do something ==> it's necessary not to do it.Example: fire is dangerous. you mustn't play with it.Don't have to do something ==> you don't need to do it but if you want, you can.Example: you don't have to tell me everything.