play fast and loose with something
play fast and loose with (something)
to treat something without enough care or attention.
The film is very entertaining even though it plays fast and loose with the historical facts.
Cambridge English Idioms Dictionary