Pushvv's examples are very good. To my understanding,

До (genitive) - Until (up to), before
Перед (instrumental) - In front of, (Implying just/immediately) before