The Excitonic State at the Semiconductor-Semimetal Transition