Understanding Edge-of-Stability Training Dynamics with a Minimalist Example