[Amibe] valence: do not apply alternate pattern close to a border

This may create long edges which cannot be smoothed.