You just need to learn from your mistakes. Once you’ve gone through a losing streak and felt the tilt, that’s already a bad sign. For sure it will lead to more losses since you’re no longer gambling with the right strategy, you’re just following your emotions. I’d say take it as a lesson so the next time, you won’t do it again. But if you keep repeating the same thing, then obviously gambling is dangerous for you.