Keep oil away from fire.

Literal

Oil [topic-は] fire [from-から] distance-and keep-[imperative-なさい].

~ておく ('to leave in a state') combined with なさい creates an instruction to maintain a state: 'keep it separated.' 離す (はなす) is the transitive form of 離れる.