The transistor will attempt to short the 12-24V supply to ground and something will go bang.