I get this alot lately.
I work on the Manchester Ship Canal and i always stand on the edge and think what if i jumped in and seriously get the urge to jump.
Aswell cause i am electrician and if i ever expose live cables or anything, i always get the urge to touch them and think what would happen.
Very strange.