ride the crest of the wave
To go through a period of maximal prosperity.
Some days we gracefully ride the crest of the wave all the way into shore, and the next day it crashes over us and takes us under. Which waves we catch and which ones catch us is a