You can buy deer repellent. Lots of times they will still eat your shrubs though. If you have a fence, build it taller and or electrocute it. Deer are very persistant and really are not that scared of things so its difficult to get them to leave when they find a good eating place. Remember this was their home first.