Best solution is to delete the post and PM the user your comment. If any one else has the same question just hope that person asks somewhere where it is not considered off-topic. And if not do exactly the same thing. This way you remind the user where and where not to post certain things to avoid it in the future.
You are here to help people understand how the forum works, not just giving out warnings and bans.