Once hailed as one of America's most promising EV makers, a multi-billion-dollar green-tech giant now appears on the knife's edge of bankruptcy.