Take care — don't catch a cold.

Literal

Cold [target-に] be-careful.

風邪に気をつけて — a common parting phrase in cold weather. Shorter and more casual than ~ないように気をつけて.