If you are flying, even dashing, you are auto disabled soon you hit restricted area in map or barriers.
If you are flying and you hit it, there is no warning that you are trying to enter restricted area/map, your flying is disabled and you are falling down as rock.