To call your opponent's all in, you should generally have the same or more chips in your stack (but not necessarily). If your push is called by an opponent who has more chips, you will be out of the game if you lose. If they are shorter, you'll still be able to continue after a bad shoving.