Note the infinitive. One can use perfective or imperfective infinitive here, but only when
(1) the subject of both sentences is the same (thus, you cannot use it in the sentence about Korean war), and
(2) the action in the second part is performed once, not periodically (thus, «…прежде чем играть в теннис» would mean ‘…before the particular tennis game’ or something like that.)