Transition from the tunneling regime to point contact studied using scanning tunneling microscopy