You are right mate, if a gambling gets addicted to gambling either because of winning or losing, in one way or the gambler caused the problem for them self and this can be prevented when the person already fixed their habits or knows how to control their emotions by not allowing either of those outcome to cause gambling addiction for them. Like myself, the earlier time that I almost became addicted to gambling was because I was targeting a huge win, though I was losing but I was not chasing losses, rather I was just expecting the win to come. I didn't become addicted because I controlled the habit.
While some people may find it easy to recognize their wrong behavior and correct it, many still gamble repeatedly, even more aggressively, despite realizing their wrong behavior. This happens because they have high expectations of gambling, believing that every gamble will or should result in a win.
This is more about individual thinking or mindset. If the mindset is flawed, even winning can trigger addiction, let alone losing.