Restoring lives after the level seemed to me a rather concise solution. I didn't want to restart the game if I ran out of lives.
And since lives are being restored, you have to accept that the frog will hurt you and you need to kill it quickly - this enemy turned out to be accidental, but I decided to leave it.