To stop adding new enemies have a global variable like GameOver set to 0. When your create enemy function runs, make it so it only runs when GameOver = 0.
Then when you actually have a game over condition, set the GameOver variable to 1 and set time to 0.