This sounds outrageous! Are you certain there is this kind of baggage search on arrival?
A friend spent Christmas in the Maldives. She always carries a laptop, and told me she had a great time. Assume this means there was no problem with her computer