If 100 people out of 100,000 who migrate cause problems, and they are all fleeing intolerable living conditions, then the only reasonable way you can say that all 100,000 should be shut out is if you value the welfare of the 99,900 so low that it is outweighed by the social harm caused by the 100 even after taking into account the benefits of migration.
Where did you get your 5 million from?
https://en.wikipedia.org/wiki/New_Year%27s_Eve_sexual_assaul...
> On 7 June, a Federal Criminal Police Office report confirmed that most of the perpetrators were of North African origin and had arrived in Germany during the European migrant crisis. Investigative results about the perpetrators were congruent with witnesses' statements.[48]
I'll leave it to you to research crime numbers like rape, theft andn such for carneval in Cologne or the Oktoberfest in Munich. Because These are the numbers that provide the context.
Disclaimer: That does not in the slightest way imply that any of These cases are defendable, the least of all rape. Still, context helps to prevent knee-jerk reactions.