A sleepy corner of Malaysia's Muslim heartland has become a national test case with a by-election that could cripple the country's Islamic party.