expresses
a humorous warning that people who disregard conventional advice about proper behavior should at least consider the possible consequences of their actions.
Before his adventurous friend departed, he jokingly reminded him to exercise good judgment.