I'm relatively experienced with gamemaker.
All you have to do is create an invisible-to-the-player small cube and place it at the edge of the platform.
Then, in the events of the enemy, do something along the lines of
On enemy collide with (whateveryounameit) make enemy... well...
stuff, I can't explain it.
Here's a bit of code from a game I was working on a while ago.
Collision Event with object enemy_marker:
reverse horizontal direction
And to give you a better view,
Make sure collision is unchecked on that enemy marker so the player doesn't collide with it.
EDIT2: Oh yeah, and make sure "visible" is unchecked on the enemy marker.