Nothing will happen to the drone if you fly into controlled airspace. You may get a warning displayed on the screen, but that's it.
If it's restricted airspace, it will simply not allow you to enter the area. It would be like running into an invisible wall. You won't be allowed to go any further.
One issue is that once you enter controlled airspace, you'll need LAANC approval. You can apply for that without being in the airspace. SImply draw the box large enough to include part of the controlled airspace you're going to fly in.
That way, you're legal.