It says something ought to be done, with an air of that goes without saying: of course I had to say it; you have to grab a good chance, do you not; there has to be egg. Turned on a past form it becomes a reproach for what somebody failed to do, as in the line saying you should not have carried on to the very end in the first place. The plain form is 어야지.