We have fundamental principles such as Allah is the most Wise. Knowing this we understand that He would never do anything that is against Wisdom because that would be a deficiency and Allah is without deficiencies because He is Absolute Perfection.
The scholar you mentioned is not limiting Allah by saying He doesn’t have the power to do such and such but rather saying that He would never do such and such thing if it is against wisdom.