If you’ve received a quest to find Tollo Underhill in the dungeon beneath Dernholm, then aggravating the guards next to the pit will get you thrown in. Otherwise the guards will threaten to throw you in but not do anything. You can also get into the dungeon through Exit B. Once you get into the pit you’ll find a door leading into the dungeon.