Good to hear. Unless we know the person extremely well, there’s no way of knowing how such a comment will be taken.
I’m using an extreme example, but what if a drinker is told to go away and drink and ends up no longer with us? I’d feel pretty remorseful to say the least for making such a comment. I’d be very careful indeed with this sort of reverse psychology.