You can remember the meaning of 案件 with this easy mnemonic:
My records (案) show that you stole many valuable pieces of clothing, and that the whole police force has built a case (件) against you.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.