You already partially answered your question:
1. If someone is in that area.
2. If someone is nearby this area.
Basically, floor resets have a certain regular occurrence time, so if someone is around or in the place at that time, the floor reset will not happen.