Problem making enemy spawn on certain levels

im having trouble stopping enemys from spawning at certain levels. heres the code to check it out but they spawn just about at every level except the starting level

Are you using arrays?

Sorry I eventually figured it out but thanks for responding. :3