There are traditional ways of numbering the commandments, but as you can see in the Bible, the commandments are not numbered.
So, when you ask about the last two commandments, I presume you are referring to the Catholic numeration – the two commandments about coveting.
Not for the sake of argument, but just for observation, Judaism divides the commandments into groups of five. When you read the actual text, five commandments have the words “the LORD your God” in them. So, that occurs five times, and then the remaining commandments shake out to the final five, where the coveting commandments are combined into one.
my point: the first five commandments that have that wording “the Lord your God” refer to God. The last five refer to commandments about people. The commandment about honoring our father and mother is, in this perspective, one that refers to God – we are to honor our parents second only to God Himself.
Traditionally, catholics say that the first 3 refer to God and the remaining 7 to mankind. but, the wording of those commandments suggests a new perspective. 5 commandments refer to God, 5 to man.