What is the meaning of [He laughs best who laughs last]

“Do not celebrate prematurely while something is not yet achieved finally. – Unforeseen developments often lead to a less favourable final result.” (Paczolay, 1997 p. 395)