A judge warned Lisa Gallagher that her 'cards had all been played' after she was 'very lucky' to avoid being sent to prison