I'm having trouble checking if the player has to pass through sensors 1 to 2 and touches 3 and 4 then the game is over and if it touches the sensor in reverse then the game fails and cannot continue to the next level

Insert a minimal game showing your issue in a .zip or .rar.