Stretching cold muscles is supposed to be a bad idea.

Spinning your legs will be a good warmup, use an easy gear. You can always stretch during a break, but afterwards will bring the most rewards.

I wish I could explain why, but I can't. My coaches have always insisted on that though...