There's another idiom which in some cases could be used to denote an unhealthy fixation on old habits or cravings:
Как волка ни корми, он всё в лес глядит.
Which roughly translates into "No matter how well you're gonna feed the wolf, he'll always keep glancing at the forest." or much more liberally, "You can take the wolf out of the forest, but you can't take the forest out of the wolf."
However, it will always have negative connotations and often imply relapsing into a former, inferior, state while neglecting other people's good will and attempts to change one's nature for the better.
Thus, it will be applicable to e.g. a paroled thug disillusioned with the hardships of an honest life and contemplating their return to crime, or to a struggling chain smoker whose significant other has been desperately trying to transition them to vaping to no avail, but it won't apply to a jogger who fractured their arm and had to take a break from their daily routine.
At any rate, it will almost certainly be perceived as something offensive if you tell that to someone straight out. Unless you both know each other well and you're confident that the recipient can take a joke!
(Reference)