known as both a respected center of commerce as well as a den of villainy along both sides of the river , those who dwelled there and managed to survive its lawless intrigue ( and knew how to navigate the gallery of rogues and scoundrels which prowled its narrow streets and alleyways ) grew rich from the riverine commerce and the slave and opium trades .