You can remember the meaning of 危机 with this easy mnemonic:
When you are in danger (危), use that machine (机) to free yourself. But remember, only use it in times of crisis.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.