There are many cases where an element or compound is metallic under certain circumstances, but a nonmetal in others. One example is metallic hydrogen which forms under very high pressures. There are many other cases as discussed by Mott, Inada et al and more recently by Yonezawa.