How can a fuse prevent electric shocking?

fuse wire overheats and melts in plug and cuts off the supply of electric current.