Gasoline does not affect diesel engines as diesel affects gasoline engines. Even if you do a mistake, it would not be catastrophic like pouring diesel into a gas engine. Although I would not recommend you make any of these two mistakes because they will result in expensive repair bills if there is too much of the wrong fuel inside the tank.