Use setRequiredPasswordComplexity(passwordComplexity : Int) in API less than 31

As the documentation already states the method was added in API 31 and since there is no backward compatibility library for this so this functionality can only be used on devices with api 31 or above