After indicates something happening later in time or sequence. Before indicates something happening earlier in time or sequence. These are direct temporal opposites. 'Last' and 'End' can be synonyms or related terms depending on context, while 'Doubt' is completely unrelated to time sequencing.