An impure compound will melt at a lower temperature because the impurities will hinder the formation of organized, "perfect," crystals. Think of it as trying to stack squares, but every once in awhile you have to use a sphere.
On the other hand, compounds will have a higher boiling point because the impurities will lower the vapor pressure of the impure liquid. This could be for several reasons, such as inducing VDW forces that would otherwise not exist (induced dipole, ions, etc) (Think of it as adding salt to water -- higher boiling point).