In Season 2, Ben (as fake Henry Gale) was trying to manipulate Locke into not entering the code into the computer in the Swan Station. This was made clear in particular when Ben told Locke that never entered the code.
Why did Ben wanted Locke not to enter the code?
I think, Ben wanted Locke to pick a fight with Jack (and maybe others like Eko). But Ben should be aware of the consequences of not entering the code (It is likely that at least Richard is aware of the consequences as after the incident, the others and the Dharma initiative have been cooperating when building the Swan Station. Then Ben should know of it as well - especially since he knew of the existence of the Swan Station before being kidnapped). So at least for Ben's own security, he should not risk the case that the code is not being entered.
Even if he didn't know, he must know that the Dharma people did this for decades and should at least be afraid of the possible unknown consequences?