"she hoped I would repent, before I came to a bad end"
This recalls the fears and warnings exhorted in the previous century by William Hogarth in his series of paintings entitled A Rake’s Progress (1735).
Dickens' own work echoes this 'repent or perish' philosophy, and most if not all of his wicked characters come to a sticky end. A Rake's Progress traces the sinking into decrepitude of an immoral character.
Rake - Painting 3