How do you catch Pokemon on leafgreen with a pokeball with out no fail?

on a low level Pokemon use a ultra ball without attacking it, otherwise get it in the red and hope 4 the best