You can remember the meaning of 坏事 with this easy mnemonic:
I did a bad (坏) thing, but I don't think this matter (事) concerns you.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.