Israel has to apply that standard because Hamas operates without uniforms unlike IDF. So yeah, Gazans shouldn't apply the same standard because unlike them Israeli military operates in uniforms so it's easy to distinguish between them and civilians. That Gazans do the opposite is on them.
Are you sure? Israel is kind of notorious for having people in civilian clothes kill its enemies.