A former Royal Marine threatened to drive a vehicle into a crowd of people in Fife and “take out as many as possible”.