An interesting premise, with great possibilities for drama. I'd think this would best suit an early-ish period, certainly no later than TOS. Perhaps at a time when the UFP is facing troubles along the Klingon borders, so Star Fleet can spare very limited resources to help out. I do think they should have some
presence, as that allows stories featuring the Fleet, but not enough to ensure safety for civilians.