You are entiteld to apply for asylum. And until a judge (not some guy on the internet) says no, you are allowed to stay in the country.
In the first step, your origin does not matter, just look at case of Andre Sheperd (https://en.wikipedia.org/wiki/André_Shepherd).
Sorry to burst your bubble, but the german law allows people to seek asylum. That people who are denied are not getting deported, that is another matter. However even here are a lot of restraints.
Please do not turn a complicated matter in a polemic "do this one thing to solve all your problems" snakeoil thing.
And, to be fair, a lot of the problems with people failing to integrate into society are because Germany ignored the immigrants in the 60s and 70s and hoped that they will get away. Turns out that not "wasting" money on education bites you in the long run.