Except it didn't seem to be stopping them in Picards season finale... Yes, but not extra-dimensional (and, as the novel Vendetta points out, was barely extra-galactic, as there was no way a weapon that feeds off planets would be able to get here, still powered up, from very far outside the galaxy). I hardly think it's a universal law; the Milky Way just happened to have the Progenitors that nudged evolution on many worlds, the Preservers who transplanted humans, the Skagarans who transported human slaves, who ever kidnapped Amelia Earhart... Remember how cute she and Kestra were together? Yeah, she nearly murdered her... May I suggest the Q Continuum novels and the third Return of Kirk trilogy of novels?