Scotland in 'dangerous' moment for climate goals