I didn't read this particular article but I've heard of other studies that express the same idea. The point isn't that you can't beat bad habits, its that the best way to beat bad habits is making them harder to do.
If you want to quit smoking you get rid of your cigarettes.
if you want to lose weight you throw away your junk food.
Keeping junk food in your house when you're trying to lose weight relies on self control and willpower to avoid eating in a caloric surplus. Same logic applies to not going grocery shopping when you haven't eaten all say since you're likely to indulge and buy some stuff you don't need for example