If we do so, engine won't start because in diesel engine compression ignition is used as diesel has low ignition temperature. But in gasoline engine we use spark ignition because petrol has high ignition temperature. As this is the reason engine won't start.