Levels unlocks even if the previous level hasn't been completed More details : When i enter level I pause the game/die and return to the world UI and it unlock the next level without complete the current level !
At the end of the level 1, put a menu jump to a completed screen. On that menu, place an unlock logic piece, and have it unlock the button to level 2. I think you have your unlock logic piece either on your pause menu or game over screen, which explains why this is happening.