That's a false dilemma. Were you to know about the attacks you would do things to prevent them. And at point it's also not about innocents.
And there is of course a difference between harm reduction based on risk assessment (what's allowed in the carry on, where planes can fly, when they are escorted by fighter jets) and other active prevention (metal detectors, backscatter Xray, luggage Xray, passenger interviews, up to and including armed air marshalls).
And the profiling of somehow dangerous individuals is of course there as an option. But so far all the previously mentioned actions were uniform and prevented no one from flying. (Of course implanted medical devices are an interesting challenge for detectors. But it's much easier to acquire and smuggle a land to air homing missile and aim it at a plane taking off than implanting a bomb into someone and smuggling through security.) So they were just. To infringe on someone's right of free movement we would have to be very sure that there is no other - just - way to minimize the risk. And that's how a lot of regulations (should) work, but ... they don't. They are inefficient and injust in a lot of cases and government has no priority to address these injustices. (As the electorate is also biased, and regulations usually amplify these biases.)