Before a time, gegen means approximately. In „Ich komme gegen sechs“, expect the speaker around six, not necessarily at exactly 6:00.