To prevent tilapia from drying out, cook it for a shorter period of time and at a lower temperature.