You’re assuming that an impending earthquake can’t be detected before it’s at full force.
All 'early warning' systems rely on having sensors close to the epicenter that detect the waves before they propagate out to populations further away, but by that time the earthquake is already happening.
Even with the early warning, sometimes the earthquake will still be on the weaker end of the spectrum, so you brace yourself but not necessarily panic.
The 2011 earthquake started off moderately, so no one in my office ducked for cover until it really started to shake, which was already about half a minute in.