Malaysians who go to Syria to get involved in Islamic State (IS) or Daish activities will be detained when the return to the country.