My dad used to keep deer out of the garden by hanging up tights stuffed with human hair. The scent of human was enough to put them off. Badgers are also sensative to scent and I'm sure I remember him saying it deterred them as well. If you can work out exactly where they are coming in from it might be worth giving this a try at their point of entry.