It's never too late, if your friend really has a strong determination and commitment to get out of this problem, it's not impossible for him to recover from this problem. However, if in reality your friend is unable to realize bad behavior while gambling, this behavior can only cause continuous losses and losses. It is quite difficult for your friend to get out of this problem (gambling addiction). And I think there is no other way, apart from you continuing to try to make him aware, and that's if you really care enough about your friend's condition. And if you can, persuade him to come to a counselor so that he can get quick and appropriate treatment regarding the problems he is facing. Because if it is not handled immediately, this can become increasingly complicated and become quite difficult to find a solution to.
That's right, it's never too late for things that lead to goodness, even if they have experienced such huge losses but if we have a strong awareness and determination as well as a strong commitment as you said then they can get out of this problem from the zone of losses that cannot be predicted. Because indeed to be able to stop gambling I think they need help also from other people such as from their relatives or their spouses if they are married, because indeed gambling addiction is clear that it will definitely cause losses that cannot be avoided with certainty.
However, as you said, if they themselves are not aware of their bad behavior, they will not care about it, even though they always experience losses, they will not care about this right. if those who are addicted to gambling are their own friends or friends, let alone relatives, we should try to make them aware because of course we don't want bad things to happen to our friends or relatives.