Police officers often shine a light into your car or even your eyes. I find this very annoying. Their reasons of using such light is to "check if there is a hazard or any other safety issues in your car". I did some research and in general, there is no relevant clause prohibiting the usage a flashlight this way.
My question is, in US and Canada, is it illegal for a citizen do the exactly same thing to a police officer: shine a light back at them out of your car or shine a light into their car? The reason is simple: before the officer show the police ID I cannot be sure that it is actually the real police that has been stalking me. I have to use a flashlight to examine if there is any hazard associated. The reason is safety and self-protection.