I'd say the simplest solution would be to replace "anything" by "something". What do you think about that?
One could of-course say: "It wouldn't be right to act"; or "to take action", I suppose, but then the question wasn't really about that.
But I am still not sure the sentences are grammatically wrong. I agree with you that they are odd though, but I think you also hesitate to qualify them as wrong.