You might say Brexit is a self inflicted wound, but it was sparked by that refugee crises.
You're right that proper border security doesn't solve the humanitarian and logistical crises. But I don't think that's a good argument for doing away with border controls all together. Your position seems to be that uncontrolled migration causes no harm, which seems a pretty extreme position to take.
Most of these countries have excellent social safety nets and public services which are now available to any migrants who achieve legal status. While contributing little in taxes back. If they don't get status they also don't pay any taxes.
I would argue the burden of proof is on you to establish that those migrants do no harm to the society rather than assuming they don't until proven otherwise.