It does not mean that the speaker will die soon.
He or she will die in a short time [not "in a few time"] - but it does not mean that the speaker will die or wants to die.
See Iangreen's answer below - it is correct.
For example:
You asked me to tell our boss that he is wrong, so I said, "I would rather die than tell him he is wrong."