Candidates for the Machap by-election have been warned to strictly adhere to the Election Commission laws while campaigning.