Before answering the question I want to remind you of a principle accepted by those who are not Muslims too: that it is not permissible for someone who is ignorant of [a particular field of] knowledge to speak about it, because doing so goes against texts from the Book and the Sunnah, from them is the saying of our Lord, the Blessed and Most High:
وَلَا تَقْفُ مَا لَيْسَ لَكَ بِهِ عِلْمٌ ۚ إِنَّ السَّمْعَ وَالْبَصَرَ وَالْفُؤَادَ كُلُّ أُولَٰئِكَ كَانَ عَنْهُ مَسْئُولًا
“And do not pursue that of which you have no knowledge. Indeed, the hearing, the sight and the heart–about all those [one] will be questioned.” [Israa 17:36].
So for example it is not permissible for the one who wants to speak about medicine to do so if he is a scholar of Quranic exegesis [mufassir], since medicine is not his field. Just as it is not permissible for a doctor who is a specialist in his field to speak about Quranic exegesis or Islamic jurisprudence or other than that, because if both of these people talk about fields which are not their expertise then they have pursued that of which they have no knowledge, and would thus have opposed the previously quoted Quranic text.
I think this is a matter concerning which it is correct to quote the old Arabic parable: this is something about which no two will differ and over which no two rams will clash horns, i.e., it is not permissible for anyone to speak about a certain [field of] knowledge except for the specialists in it.
…
After this I come back to saying that it is not permissible for any person to speak about that which is not his specialism–particularly when it is clear that his speech in the field about which he has spoken without knowledge opposes that of those who are specialists in it.
https://thealbaanisite.com/2011/06/20/musa-and-the-angel-of-death-1/