While the name Resist Magic suggest that it helps with resisting all spells at all time, this is not the case.
This skill helps you lessen the severity of spells that lower your stats or ones that last for a specific duration of time, and occasionally resists direct-damage spells.