I need to know how can I save the state where someone breaks already at A0?
You are reading the sensor values in loop() so they will be repeated frequently. You could set a boolean variable to true when the sensor on A0 first detects a person, then when the sensor on A1 detects someone check whether the boolean is true. If it is then A0 was triggered before A1
Periodically (use millis() for non blocking timing), set the boolean to false to enable detection of further people.