'Can't' and 'mustn't' (must not) are used to show that something is prohibited (not allowed)
You can't go into that restaurant without a tie.
You can't drive in this country unless you are over eighteen.
You mustn't use your phone in class.
'Can't' usually gives the idea of something that is against the rules. Mustn’t usually means that it is the speaker who is setting the rule.