The p-1-method works , if there is a prime factor $\ p\ $ of $\ N\ $ , such that $\ p-1\ $ splits into prime factors smaller than the chosen bound $\ B\ $. Whether a given bound $\ B\ $ will work, cannot be predicted.
Of course, increasing $\ B\ $ would eventually find a non-trivial factor, but at some point, this method would be not more efficient (perhaps even less efficient) then trial division.
If we are lucky, we can find large factors that could not be found with trial division in reasonable time.
The p-1-method rarely works , if there is no prime factor with , lets say , $\ 25\ $ digits or less. In this case, the better ECM (elliptic curve method) is usually used.