You can remember the meaning of 厉害 with this easy mnemonic:
He is very difficult to deal with when he is in severe (厉). He may even harm (害) you when you try to talk to him.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.