You do something first. This prepares you for something else. It means 'do this, then that'.
、、。
Before the trip, let's book the hotel in advance, and then make a sightseeing plan.
、。
I did my homework yesterday (in advance), so today I played all day.
、に。
I left the door unlocked (didn't lock it), and a burglar got in.
、に。
Please prepare the meeting materials in advance and distribute them to the participants.
、に。
I've cut the ingredients for dinner (in preparation), and they are in the fridge.