It's fiction. The characters take big risks because that excites the audience. The risks pay off because that pleases the audience.well, what if Data's sneaky plan didn't work where Lore would have pretty much succeeded? then Picard and gang would be screwed big time where the Borg would end up winning with their weird Borg takeover during that Frontier Day or whatever it was called?
There is no problem here.