Some type of this flawed thinking is borrowing money from loan apps to gamble thinking that when they win they will pay back the loan and its interest and keep the rest for themselves.
This is the biggest trap of a bad mindset in gambling: taking a loan is addictive; even if you succeed in winning on your loan, you will continue to do it until you lose the amount that you loaned.
Gambling is not an investment; you cannot cut your losses. You have obligated yourself to win because of the loan, and if you lose, you will take another loan to try to regain your losses and pay your first loan. you are taking a loan to pay the loan and this is a big disaster, because you cannot find a thing to bail you out.