Take a sweater with you so you don't catch a cold.

Literal

Cold [object-を] catch-not [purpose-ように] sweater [object-を] take-and go.

持って行きなさい means 'take it with you' — 持つ (hold) + ていく (go). A caring, practical instruction.