Peace Bro Simple
I came across such a blatant degrading heathenish answer from an imam from my younger days.
What he said when I asked him a question was, "don't you know asking to many question can take you out of Islam"
What a nut he was.
Mind you I stopped asking questions, but only realized some time after that such people are blatantly unfortunate and consider their belief/ the way they understand their idol.
Aaah I had the same experience! I used to go to this "Sunday School" it was such crap. I was something like 11 or 12 yrs old at the time. I felt really confused because I was raised at home as a God-Aloner using RK's old-version "The Golden Message" if anyone has heard of it. Anyway that "school" was absurdly sunni. I always asked why they tell us to do certain things that seemed so un-quranic to me. Then I was labelled the devil incarnate by the "teacher"

which is very funny if you get to know my personality lol
I remember she was explaining that we can't have this dessert many Egyptians make during Ramadan. It's dried fruits soaked in juice and left overnight or as long as possible. So this teacher tells us it's haram because it turns into wine

And when I told her wine takes longer than overnight to make, she told me but it begins the fermentation process. So I asked her well is it alcohol? She said no but we need to stay away from these things. So I said why not stay away from grape juice. And she said this is haram too.

so I asked why is grape juice haram
Then she turned to the class and said "take a good look at what just happened between me and her. This is how the devil behaves he keeps asking why why why"

of course she never answered
Anyway tensions rose to a high level when they put aside the quran for "story-time" and made us memorize hadith for homework .
Sorry for the drawn-out story I just felt your pain for a minute there

I disagree with you, Bro AB with all due respect. There is nothing wrong in asking questions. I would say the only stipulation would be that your intent is to gain more knowledge, even if the answer turns out to be the opposite of what you wanted/initially believed.
Peace All