The Literal Commandment
The nakedness of your son's daughter or your daughter's daughter, their nakedness you shall not uncover; for their nakedness is yours. (Leviticus 18:10)
The literal commandment is that a person must not "uncover the nakedness" of your grand-daughter born to your son.
"To uncover the nakedness of" is a Biblical idiom for "having sexual relations with".