Make sure you don't catch a cold.

Literal

Cold [object-を] catch-not [purpose-ように] do [emphasis-よ].

ひかないようにしなさいよ — adds emphasis with よ to the command. ~ようにする means 'to make sure to.'