No personal experience, but watch my brother with his kids.

When the kids were near the oven or the fireplace, he'd do that sucking sound (where you pierce your lips together like you're going to whistle), then say, "hot, it'll hurt" and the kids would back off.

Getting them to feel the heat off a cup of tea etc whilst saying the same thing will help train them.