Can I apply for a visa upon my arrival at the immigration office?

Visa on arrival (VOC) at the checkpoints is not allowed for both entry in Malaysia and Singapore. You are expected to have your visa applied and approved prior to your entry into Malaysia or Singapore. Please refer to the following link below for more information:

Singapore visa requirements:
https://www.ica.gov.sg/enter-transit-depart/entering-singapore/visa_requirements

Malaysia visa requirements:
http://www.imi.gov.my/index.php/en/main-services/visa/visa-requirement-by-country