Fictional Setting Based on Pre-Islamic Arabia
First off, for future reference, this is a pretty vague ask and doesn’t give me much to work with, so make sure in later questions that you provide the details of what exactly you think might be offensive.
When you decide to set your book in a specific historic setting, you need to be true to it. You cannot “create” places and groups that did not exist, because then it is not pre-Islamic Arabia. Changing names of places a bit to suit your plot or basing a group on a group that existed is fine, but creating things that have no base in history is not okay. It creates false beliefs about a culture that really has enough of those already.
Also, djinn are mainly a part of Islamic culture, not Arab. In pre-Islamic Arabia they were regarded quite differently than they are in Islam, so make sure you’re careful when picking your sources.