2011 Ford Ranger cranks with no start 20x, only revs to about 2500 or so

4 cyl diesel engine cranking but no start until 20 or so attempts, then only revving up to 2500 rpm ? intermittently may rev normal but not very often… any help would be great !

There’s no such thing as a 4 cylinder Ford diesel.