It’s not a good idea for your baby to nap close to bedtime, because she won’t be able to fall asleep (or stay asleep for long) at night.
It’s best to leave about four hours between your baby’s afternoon nap and bedtime.
However, it’s important that you don’t eliminate a baby's early afternoon nap, because daytime sleep can help prevent your baby from becoming overtired at night. Being “wired” by the evening can interfere with falling asleep at night because your baby may be so overstimulated that she is unable to relax enough for sleep.