Please look at this sentence:
あきらめたらそこで試合終了なので、最後まで頑張ります
How should I understand it? I tried to understand the meaning, and I think it means, "if you abandon, the test will be over at once (which means that you fail at the point where you choose to give up), so you need to insist on studying hard until the last moment." Am I right? Or does it indicate another meaning?