If you do one thing before doing something else, you do it earlier than the other thing.
在 (做某事) 之前 • He spent his early life in Sri Lanka before moving to Canada.
Stock prices have climbed close to the peak they'd registered before the stock market crashed in 1987.
股票价格已经快爬升到了1987年股市崩溃前的最高纪录。
You use before when you are talking about time. For example, if something happened the day before a particular date or event, it happened during the previous day.
(某时、某事) 以前