General order 13
From FEInfobase
Except when orders state to the contrary, Starfleet personnel will respect the territorial integrity of independent planetary systems and governments, and will not violate territorial space belonging to such worlds. However, Starfleet officers may violate Neutral Zone areas as designated by treaty only if such action is required to save the lives of Federation citizens under conditions of extreme emergency.