To make sure you are not plagiarizing from either the original or secondary source, make sure that the parenthetical citation clearly indicates that:
The APA editors state: “Cite secondary sources sparingly-for instance, when the original work is out of print, unavailable, or available only in a language that you do not understand. If possible, as a matter of good scholarly practice, find the primary source, read it, and cite it directly rather than citing a secondary source.” (Section: 8.6 Primary and Secondary Sources of the APA Publication Manual, 7th Edition)
When citing a secondary source:
For example, if you read a book by Gene Roddenberry (2001) in which he cites a book by Leonard Nimoy (1995) but you are not able to read Nimoy's book yourself, then you would cite Nimoy’s book as the original primary source but indicate that Roddenberry’s book is the secondary source.