CNG was made in fact to reduce diesel use to keep the ambient air clean.
There are CNG kits for diesel engines, but once converted on CNG, you cannot switch back to deise.
The regulator/kit takes of all issues you are worrying about, lile combustion, spark etc.
Try sometime Google