Indeed, Allah Almighty is the Creator of all living creatures. To him the origin of creation is ascribed. With this in mind, we see that it is better to busy your mind with other queries that are of practical application in daily life. In addition, the issues raised in the question are among the philosophical issues that occupy one’s mind without any apparent benefit. Thus, try to ponder over Allah’s creation, and stick to the best of what you can to meditate on the different aspects of Allah’s creation. Stick to performing daily prayers on time, accompany those who are righteous, and be always in the company of the true faithful adherents to Allah.