I'm not sure spoil is the right word. Creating bad habits maybe? Not sure there is a magic age.
I agree with some of the PP. Bad habits is a better term than spoil at the very beginning. You'll know you've started to create a bad habit when LO refuses to sleep or occupy themselves without you to constantly holding them or at the sligh