Mary Shelley was familiar with Professor Waldman's ideas of chemistry, likely having read Humphry Davy's introductory lecture to a course he gave in 1802 which was published as A Discourse, Introductory to a course of lectures on chemistry.
Percy Shelley owned a copy of Humphry Davy's textbook Elements of Chemical Philosophy, which he and Mary likely studied together in the summer of 1816.
Humphry Davy was also conscious of the negative aspects of the increase in human knowledge, believing that it was important for scientists to maintain respect in their approach to nature and to use knowledge responsibly for its wider benefits rather than for personal glorification.
Victor Frankenstein consistently fails to meet this responsibility, failing to have respect, reverence, or responsibility for his creation, failing to consider anyone or anything other than his obsessive pursuits of knowledge, and his pride and ambition making him behave aggressively, presumptuous, disrespectful to nature, and dangerous.
When creating the monster, Victor is so absorbed in the power and exercise that he doesn't consider the morality of his work or the consequences for himself, the creature, or the whole of society.