Close the lid tightly so it doesn't spoil.

Literal

Spoil-not [so that-ように] firmly lid [object-を] tighten [imperative-なさい].

Uses ~ないように (so as not to) with 腐る (to rot/spoil). しっかりと means 'firmly, tightly.' A practical household instruction.