Ok - I'll write some random stuff and see if any helps.
dV: if the volume is getting smaller, the change of volume is negative, i.e. dV is negative during compression.
work done by gas: I prefer to think of a gas expanding, perhaps a steam engine pushing the piston out and driving the wheels - this is +ve dV and the gas is doing work.
So if an expanding gas does work, a compressed gas has work done on it, so you'd say the work done by the gas is negative.
Helpful?