What do do in a situation where you tried to gamble to make ends meet but ended up worse off than before.
Rule #1: Don't gamble if you can't afford to lose
I guess stop the bleeding. Cut your losses and try get an extra job or pick up extra hours. Cut your expenses as much as possible for a short time to make up. Things such as cable and internet can go unless that is a way to receive income. If you have space and allowed, get a roommate. I don't know how deep the whole is, but you will get out eventually if you increase your income and lower your expenses. The sooner the better.
I'm sorry you gambled and lost. It depends what happened, though. Can you speak to someone about a way to mitigate the problem, such as lower costs? Change some lifestyle things for a short period of time? Can you take a breather for a few days and not think about it and look at it with fresh eyes at that point?
I've had times where I tried to make things better and it ended up worse, and I usually take a few days to cool off and write down in columns on a pad what my options and potential outcomes are.
It really depends on the kind of loss you are talking about.