You could have an instructor next to you as an observer offering advice as long as you were not paying them and it was not a lesson otherwise you are PUT.
Logging Instrument time is ok as long as it is relevant to the licence you have i.e. IMC, CPL, IR etc but if you have a PPL and hour building you are cannot log IF time unless under instruction, then you go back to the above statement.
The IR is a minimum hour course also 50 for CPL holder 55 without so even if you have logged the time its not relevant unless part of the course.
Complicated but as above you cannot do this!!