YOU SAID:
i went to the mall to eat dinner
INTO JAPANESE
私は夕食を食べるためにモールに行きました
BACK INTO ENGLISH
I went to the mall to have dinner
INTO JAPANESE
私は夕食を食べにモールに行きました
BACK INTO ENGLISH
I went to the mall for dinner
INTO JAPANESE
私は夕食のためにモールに行きました
BACK INTO ENGLISH
I went to the mall for dinner
Come on, you can do better than that.