You can remember the meaning of 事先 with this easy mnemonic:
It doesn't matter (事) who came to the restaurant first (先), you still have to make a reservation in advance.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.