Any wise enemy is better than an ignorant friend.
(Traditional Arabic proverb – Quoted in Carol Bardenstein, Translation and Transformation in Modern Arabic Literature: The Indigenous Assertions of Muḥammad ‘Uthmān Jalāl, Otto Harrassowitz Verlag, 2005, p. 66.)
There are other similar versions such as the one I personally like, that sounds more or less as “the ignorant to himself is worst than the enemy to the enemy”