When you get to the last level of the game, simply kill the Mayor and steal his hat. Once you have it, instead of heading towards the marker and giving a speech, find the area that has four bottomless pits that are fenced off. When you've found them, drop the hat and punch it down one of the pits.
The end narrative will then appear describing the fact that you've found the 'bad ending' and the achievement will unlock.