Is the Hellfire Doctrine Truly Just?

Why did God warn Adam about death but not eternal hellfire? Is it justice, was God righteous for withholding eternal hellfire from Adam? Was God lying to Adam when he told Adam, “if you eat from the tree in the day that you eat from it you shall surely die”?