No, why would it be. you aren't doing anything game breaking that wasn't intended by design.

if an npc bought and sold items at the wrong prices and people kept buying/selling the item back to the npc knowing that it was buying stuff back at a higher price. then that's taking advantage of a typo/glitch in the system and that's against the TOS.