Found this in a church restroom, which is pretty much a benign public environment.
If you put a pushbutton control at the usual place for a light switch and give it a light-switch affordance, then you shouldn’t be surprised when people push it.
Now, if the pushbutton happens to both turn off the light and disable the automatic light function, well, that’s hardly the user’s fault, is it?
Methinks it should be an automatic light switch with a manual override tucked inside a cover that doesn’t look at all like a pushbutton. Of course, the IR lens over the sensor would then require some up-armoring, as it’d look a lot like a button.