Brings to mind that old saying - "Your right to free expression ends at the point where your fist meets my face
" or something like that. Similar thing could be extended to 'non-interference', perhaps.
If the alien whatsit or crazy computer had the power and
inclination to seriously threaten a Fed starship (which, as far as I can recall, had taken no provocative action besides just being there), then that could open a whole new can of worms