High-energy X-ray observation of the X-ray binary 4U 1700--37