Ed Miliband has taken an almighty gamble with the UK's energy security. His luck may be about to run out.