on time - not before, not after, but dead on time. in time - not late. So, with reference to your sentences, the first example wants to say that you should not be late but you can come earlier, while the second one tells you to come exactly at the time arranged.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.