~ばそれまでだ
If …, then that's the end of it / it's all for nothing
N1
V-ba / V-tara + それまでだ
~ばそれまでだ means that if that happens, all previous effort or value becomes meaningless—it's the end. It often follows a statement about preparation or value (however much you practise, if you get nervous on the day, that's it). Familiar combinations are {壊|こわ}れればそれまでだ, {死|し}んでしまえばそれまでだ and {言|い}ってしまえばそれまでだ ('if you put it that way, there's nothing more to say'). It is used in writing and careful speech. It is close to ~たら{最後|さいご} but stresses that everything before becomes useless.
Examples
どんなに良い計画を立てても、実行しなければそれまでだ。
However good the plan, if you don't carry it out, it's worthless.
高価な機械も、手入れを怠って壊れてしまえばそれまでだ。
Even an expensive machine is finished if it breaks through neglect.
「運が悪かった」と言ってしまえばそれまでだが、原因はきちんと調べるべきだ。
You could just call it bad luck and leave it at that, but the cause should be properly investigated.
Exercises
1.資格を取っても、使わなければ 。
2.せっかく作ったデータも、バックアップを取らずに消えて 。