When you commit a burglary to help out someone who is having a bad time, it is still a crime--and I doubt that a judge or a jury will be sympathetic to that excuse.  You need a criminal lawyer, and if you can't afford one, ask for a public defender.  And do it right away; you definitely need help.