Where or when is it unsafe to clean using compressed air?
There’s many sources of compressed air. Potential problems are static discharge - moving air generates a static charge, moisture as the water vapour in the air condenses out, eye and breathing hazards from dust etc being blown around.
These hazards can be mitigated by various means.