devat vs avant
I think 'devant' literally means in front of something, whereas "avant' means before an event.
I rather think that 'devant' is a preposition of location while 'avant' a proposition of time. you can say "vous êtes devant moi" meaning "in front of" to indicate where each person stands. If you say "vous êtes avant moi", it means you arrived after me.