LeBron James scored 40 points for the Lakers against the Nets, but the 39-year-old warns retirement is near