Facts can not be made up. Messing with data, or coming up with fictitious data is an example of bearing false witness, or lying. One has a right to be told the truth. That's why the moral code forbids lying, bearing false witness, ect...
Fraud isn't contrary to the scientific method, only to the moral code. The logical operations of the scientific method will simply generate garbage if false data is used. ...GIGO.
The relevant concept here is how the qualitative quantifier truth gets applied to some conclusion, or claim. In the case of logical operations, every sentient rational being will conclude either the quantifier applies always and universally, or it never does. In the case of doctrine the application of the quantifier is due to a consensus vote, that fixes the application to the claim forever. Science never considers doctrine to be valid, only valid outcomes of logical operations are.