The upside to that is that humans could and probably would just sneak nukes onboard their ships and set them off on the inside if they did try to invade, a tactic for which they’d have no real defense.
Any civilization that had those things, even rudimentary Trinity Test ones, are on a whole different playing field than any that came before by virtue of the nature of nukes, so it is reasonable that aliens would investigate nuclear powers first.