The best prevention is proper grounds care. Dieldrin sprayed twice during harvest tends to control the pest. It is a beetle with long antennae curving over their back. They lay their eggs under the bark of the thicker main stems. The grubs, white colored, tunnel into the wood and progressively burrow their way around in the tree.
Symptoms are small amounts of woody waste around small holes in the trees.
Unfortunately, once deep inside the tree, the larvae are hard to kill. If not stopped early, this pest can kill whole areas of trees. Dieldrin spray mixed with Methylene and blue dye is applied to the trunk and main stems of the tree with a brush to kill these best when outside the tree. This concoction should be applied once or twice a year, just before it rains. For plants that the larvae has already penetrated deep into it, there isn't much that can be done.