Many consider teleological explanations of natural phenomena to be poor science, partly because they introduce an extra entity (the intending person) into explanations, which offends against the principle of Occam's Razor, partly because they seem to make it too easy to construct an explanation for anything.
The impact of Charles Darwin's theories of evolution, which hold that species develop by natural selection, was to greatly reduce the influence of traditional teleological arguments. Such arguments were still advanced by many during the resurgence of creationist sentiment in the early 1980s.
In recent years, some scientists have advocated an "Anthropic Principle" which explains the values of certain physical constants etc. as being the ones necessary for the existence of the human beings who make the relevant observations. Critics have suggested that some forms of this argument have a fatal tinge of teleology.
An illegitimate teleology occurs when one speculates, without sufficient proof, that X causes Y.