There are many insects that are visible on trees and plants and without additional photos and infomation it is difficult to accurately identify the beetle. You may like to take the insect to your local nursery or consult a certified arborist for a positive identification. That being said, from the shape of the bugs body and the prominent pincers it could be that your bug is an earwig.
Earwigs are approximately 2 cm long and posses a pair of forcep-like pincers. They feed at night on decaying organic matter as well as on the tender shoots, leaves, and blossoms of flowering plants and vegetables. Earwigs are also carnivorous,and are predators of insect larvae, slug eggs, aphids, and other garden pests. During the day, earwigs like to hide in cool, dark, moist places: under stones, in garden rubbish, inbetween the leaf sheath of plants.
The best time to begin control measures is early spring, during dry, warm weather, when the earwigs are young. Cultivate the soil to disturb earwigs that lived through the winter and expose newly laid eggs to the dry surface where they are less likely to survive. Keep the lawn and garden free of excess debris and decaying organic matter to make it less attractive for earwigs. Don’t allow fallen leaves, weeds, and old wood to accumulate except where organic materials are stacked for proper composting.
To trap earwigs take advantage of the earwigs’ habit of hiding in small, dark places by setting out rolls of cardboard or lenghts of old garden hose in the evenibg, and in the morning, when the bugs are settling in for the day. Once captured, dump the earwigs into a bucket of water containing a little oil.
Good Luck !