Diesel engines can technically run backwards, though there's very little (if any) practical applications for this, especially for road-going engines.
Gasoline and diesel engines are very different. The former rely on spark ignition while the latter use compression ignition. Diesel engines typically run at much higher compression ratios than ...