The United States adopted this policy after the 9.11 terrorist attack: Either stand with us against terrorism, then you are our friend; or do not stand with us, then you are our enemy.
The statement "If a professor has enough ability, he can even teach stupid students to pass; therefore, if he can't teach stupid students to pass, it means that his ability is not good enough" is not the same as the expression in the above.