。
Be careful not to catch a cold.
Literal
Cold [object-を] catch-not [purpose-ように] be-careful.
気をつけなさい — the mild command form of 気をつける ('be careful'). The ように purpose clause specifies what to be careful about — not catching a cold. A direct parental or teacherly instruction.