Folks name people jesus or whatev' plenty often, and that's not getting into the actually silly stuff. Poor decision-making is rarely considered sufficient reason to curtail a parent's decisions for their child, particularly for subjects like the kid's name.
This is more in the realm of naming your kid Yahweh, though.
I mean shit, I feel less sorry for the kid named Evangelion Unit One growing up than a kid named Allah. Parental publicity stunts are bad enough without imposing the risk of physical harm in addition to emotional. Kids ain't accessories, give 'em names, not topical memes or nouns associated with your interests.
Yeah uh: https://www.behindthename.com/name/joshua
It's literally what it is. It's both "Jesus" and "Yahweh is Salvation." Joshua as a christian name is basically "Mohammedallahuakbar." It's just that you don't notice it because christian Mohammedallahuakbar sounds like a perfectly reasonable and normal name to you because you probably know several of them.
And "Allah" is just "god". The equivalent would be naming your kid "Allahu akbar." Except not equivalent because that has another modern and mainstream meaning-calling a kid that would be more like calling them "Deus Vult". Muslim naming conventions favor characteristics for the personal name (as Christians do, except including other name sources, such as saint names). A proper Muslim name relating to Allah would be "Abd/Amah—". Naming your kid "Allah" is
literally naming your kid "God" in modern etymology.
...
Someone has a kid, names them "DEUS VULT", and gets a dog named Jerusalem.
"DEUS VULT! WE ARE GOING ON A LONG WALK THIS AFTERNOON, AND WE ARE GOING TO TAKE JERUSALEM!"