Know typical examples. The object of the preposition in is often a container that encloses something; the object of the preposition on is often a horizontal surface that supports something touching it.
IN | The peaches are in the refrigerator. |
There are still some pickles in the jar. | |
ON | The peaches are on the table. |