A Dunedin man allegedly swung a piece of timber at two strangers, striking them in the head and arms, after finding the pair going inside his garage.