Sadly, this policy stopped being enforced about 20-30 years ago. For a time, they wouldn't allow people in who had long hair; you either agreed to a haircut on the border or got turned back...
All those damned hippies used to run all over the place looking for Jim Morrison. Luckily Jim was able to get the Malaysian government to crack down. Not that I know where he is now (Pangkor Laut).