I'm sorry for asking, but are you being serious? First, I have to check, when you clarify that it was muscle glycogen depletion, are you stating that your blood sugar level was fine? You ran out of glycogen, but your blood sugar wasn't low? Also, are you certain that you didn't edge into liver glycogen depletion?? Did your lactate shuttle get stuck at the platform?
Second, did you run 38km on Friday? Why?
Third, what is a "hard" 22k? Did you race a half-marathon? Then you followed up the next day by running 32k? And from the sounds of it you only ran this because you decided not to push on further, is that correct?
Too dangerous? No, it's not too dangerous to continue running once you've hit the wall. You'll run at the limit of your fat-burning pace, and tbh the average human has enough fat for many many more miles. Recovery from complete glycogen depletion can take days if you sit on your ass doing nothing, and weeks if you continue to train, with all that training being below par for hard sessions, though on par for the purer aerobic work. No, the danger is continuing to train as you are, unless you're hiding a huge amount of experience and expertise from the forum which didn't manage to come across in your post.
When is your marathon, what's your training plan, and what's your background?