Assuming all options are available including ivf, the decision is specific to the social, mental and medical circumstances.
Male: azospermia and repeat failure of surgical sperm
retrieval. Female (using her own eggs): FSH
>30miu/ml, repeat >3 ivf failures, age>46y. Otherwise no absolute reason to stop trying.