Man 'high as f**k' almost crashes into jail