Smashing a window to save a trapped animal could get you in trouble with the law