Deadwood Dick was invincible in combat, but did sometimes operate outside of the law.
The passage highlights a duality in Deadwood Dick: he was a skilled fighter but also engaged in illegal activities.