When you die, the game lets you keep the coins you collected before meeting that tragic end.
Avoid killing enemies near ledges there's a good chance coins will fall into a spiked pit, leaving you with a somewhat tough decision. Jump in to collect, knowing it may kill you or leave the precious loot behind.
Study Enemy Patterns it's always smart to know what you're up against.
Always take the slow but safe way down.