I think that statements such as "Knowing it is impossible, but doing it because it is right," are not quite suitable. Instead we should say, "Knowing that the task is very hard, we are striving hard to achieve it."
我認為「明知其不可為而為之」的說法並不恰當，而是應該這麼說：「明知是很艱難的工作，而仍努力為之」。