It should have been geo-fenced, but Tesla probably decided not to so they could collect more data while assuming no legal risk (although receiving very real reputation risk). If they wanted to, they could have programmed autopilot to shut off when it sees a clear traffic light or stop sign...