When you're about to lose a life, whether by getting hit by an enemy/obstacle or fall into the void, pause just when Mario about to leave the screen and then reset the game. You'll be right back ...
Go underneath the bridge that leads from the first section to the western one to find three purple coins hanging out underwater. A pole south of the T-Rex can be climbed up with Mario. Look behind ...