We have been taught that Bilaam was on the same level of prophecy as Moshe .
But was the evil Bilaam really on par with the righteous Moshe?
We have also been taught  that when “Bilaam arose early to saddle his donkey” , G-d said, “Evil one! Avraham already came before you, as it says, ‘Avraham arose early and saddled his donkey’” . The question is asked  what is so special about being before, and why is Bilaam being referred to here as ‘evil’?
When the ‘Ohev Yisroel’, the Apta Rav, R’ Yehoshua Hershl, was on his travels it happened that he encountered a steep hill. He quickly descended from the wagon drawn by his horse, and ascended the hill afoot.
“Holy Rabbi,” inquired his attendant, “why did you come down from the wagon and climb this steep hill afoot?”
“Because,” replied the Rabbi, “I am afraid the horse will call me to court; it will claim that I had no pity on it, making it draw me up the hill.”
“And if so,” probed the attendant, “would you not win the case on the ground that the horse was meant for man’s service?”
“Yes,” said the Rabbi, “there is no doubt that I would win; but I would rather walk up the hill a dozen times, than find myself in litigation with a horse!”
Perhaps with regards to their level of prophecy they were equal, but Moshe was nevertheless greater because unlike Bilaam, he was wise enough not to have disputes with his donkey!
Indeed we have been taught that wisdom is greater than prophecy .
But there is a prerequisite to true wisdom: awe of G-d .
Perhaps it is in this that Avraham was ‘before’ Bilaam: Avraham prepared his donkey and went “as commanded by G-d” – primarily with the awe of G-d, whereas Bilaam prepared his donkey and went “with the officers of Moav” – against the main () will of G-d, i.e. awe of G-d. Subsequently Avraham, like Moshe, had enough wisdom to treat his donkey fairly, but Bilaam, who not only treated his donkey harshly, but even ended up arguing with it… and losing! 
Be wise and don’t get ‘court’ out!
Have an ee-awesome Shabbos,
 See Rashi, Bamidbar 22:5
 Rashi, Bamidbar 22:21 (Medrash Tanchuma 8)
 Bamidbar 22:21
 Bereishis 22:3
 E.g. Menachem Mendel of Kotzk, Ohel Torah (from haskamah of HaRav m’Polonsk to Ben Yechaved Av; Zar Zahav 28b)
 Bava Basra 12a
 Tehillim 111:10
 See Bamidbar 22:12 (and Rashi 22:22, 35)
 Bamidbar 22