You can successfully line breed for many generations. (line breeding meaning father to daughter, or son to mother) It's how many famous mouse or rat lines are created and maintained. Through minimal outcrossing and line breeding.
I would say you can safely go up to the fourth generation on line breeding, then you should outcross.