It's wrong to burgle people's houses.
Dave is being harassed by a loan shark to repay a loan by tomorrow or the loan shark will hurt him.
Dave needs to acquire money quickly.
Dave decides to call his  parents and beg them for a loan to get him out of trouble.
Dave decides to sneak into a house in a wealthy neighborhood and take some jewels he can pawn for cash.
Dave does not break any laws and manages to figure out a solution to the problem.
Dave is later identified on a security camera and arrested and sent to jail.