You can remember the meaning of 禁止 with this easy mnemonic:
My school prohibited gum, so I have to endure (禁) boring classes and stop (止) myself from falling asleep by pinching myself.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.