The critical level of discrepancy in regularization methods